Commit Graph

9306 Commits

Author SHA1 Message Date
Tim Taubert
64fd70e048 Bug 1250930 - Use correct global when creating WebCrypto objects r=bz a=ritu 2016-03-10 09:09:23 +01:00
Ryan VanderMeulen
13ad21c8b1 Merge m-c to inbound. a=merge 2016-03-05 19:30:51 -05:00
Ryan VanderMeulen
d3f5d4bd68 Merge fx-team to m-c. a=merge 2016-03-05 19:22:45 -05:00
Blake Kaplan
3ea1e37549 Bug 1234440 - Stop using CPOWs in this test. r=wchen 2016-03-04 17:54:00 -05:00
Alexander Surkov
7b27d0b2aa Bug 1249443 - add AllChildrenIterator::Phase, r=bz 2016-03-05 16:11:34 -05:00
Alexander Surkov
a42b9a534a Bug 1249443 - add AllChildrenIterator::GetPreviousChild, r=bz 2016-03-05 16:11:21 -05:00
Mike de Boer
86fc8c7fb0 Bug 1241930: Part 5 - convert all assertion methods used inside content tasks to the Assert.* family in dom tests. r=mconley 2016-03-04 14:32:32 +01:00
sakshi
88d7bc82bd Bug 1197311 - Remove PR_snprintf calls in dom/ r=froydnj 2016-02-17 14:23:39 -05:00
Valentin Gosu
18fc3d7b6f Bug 652186 - Fix tests involving URL backslash replacement r=bz
MozReview-Commit-ID: JgWFkJN7Mtc
2016-03-03 15:50:22 +01:00
Ehsan Akhgari
937d4b75df Bug 1251872 - Part 1: Implement Request.referrerPolicy; r=jdm 2016-03-03 16:43:55 -05:00
Andrea Marchesini
6bcc6a3c0d Bug 1237807 - Split test_websocket.html - patch 5, r=ehsan 2016-03-04 20:39:10 +01:00
Andrea Marchesini
f6ca83923e Bug 1237807 - Split test_websocket.html - patch 4, r=ehsan 2016-03-04 20:38:54 +01:00
Andrea Marchesini
5c7c69882e Bug 1237807 - Split test_websocket.html - patch 3, r=ehsan 2016-03-04 20:38:45 +01:00
Andrea Marchesini
d85882f059 Bug 1237807 - Split test_websocket.html - patch 2, r=ehsan 2016-03-04 20:38:22 +01:00
Andrea Marchesini
0694354711 Bug 1237807 - Split test_websocket.html - patch 1, r=ehsan 2016-03-04 20:38:12 +01:00
Martijn Wargers
153c131077 Bug 1252444 - Rewrite some dom mochitests to use pushPrefEnv instead of setCharPref. r=jmaher 2016-03-03 09:41:14 -05:00
Yoshi Huang
da0bea0bac Bug 1227861 - Add OriginAttributes getter/setter into nsIDocShell. r=smaug, sicking 2016-02-16 15:04:14 +08:00
Gabor Krizsanits
c08894747e Bug 1248806 - Splitting out protocol handlers from nsLayoutModule. r=bholley 2016-03-03 12:05:52 +01:00
Carsten "Tomcat" Book
9e3db32a77 Backed out changeset ac4148f22b2d (bug 1186072) for referrer test failures 2016-03-03 09:23:59 +01:00
Franziskus Kiefer
994f6cf0c7 Bug 1186072 - add trailing slash to origin referer header when policy is set, r=sworkman
MozReview-Commit-ID: 3PYuODmqpbL
2016-02-24 10:51:54 +01:00
Ehsan Akhgari
90da955373 Bug 1249542 - Remove the prefs for History API push/pop/replaceState; r=bzbarsky
These prefs don't even work properly, and they can break Web content in
pretty bad ways for the users who have them set.
2016-03-02 18:14:15 -05:00
Boris Zbarsky
1c341f9698 Bug 1252565 part 2. Make dom::WarningOnlyErrorReporter handle workers. r=bholley 2016-03-01 16:53:22 -05:00
Wes Kocher
b5c77463c0 Backed out 2 changesets (bug 1252565) for windows build bustage CLOSED TREE
Backed out changeset 9de2c10a1cc3 (bug 1252565)
Backed out changeset fc5c4cb02d24 (bug 1252565)

MozReview-Commit-ID: GCQedQwqslg
2016-03-02 10:44:11 -08:00
Trevor Saunders
a1ef121943 bug 1252687 - make the ctor for CycleCollectorStats constexpr r=mccr8 2016-03-02 13:37:01 -05:00
Trevor Saunders
0fc4325447 bug 1252687 - get rid of static nsStrings in PerformanceObserver.cpp r=bz 2016-03-02 13:37:00 -05:00
Boris Zbarsky
318a7c5f2e Bug 1252565 part 2. Make dom::WarningOnlyErrorReporter handle workers. r=bholley 2016-03-01 16:53:22 -05:00
Boris Zbarsky
9df89b7054 Bug 1072144 part 6. Switch WorkerRunnable::Run to calling TakeOwnershipOfErrorReporting on its AutoJSAPI/AutoEntryScript and remove the remaining JS_ReportPendingException callers in worker code. r=khuey 2016-03-01 16:52:27 -05:00
J. Ryan Stinnett
7e2f42d388 Bug 1238160 - Add assertions in non-desktop code paths. r=bz,fabrice
Several code paths try to ask the principal if it's in a browser element, but
the principal now only knows about *isolated* browser elements.  All such code
paths are currently unused on desktop.  The frame loader now asserts that
isolation remains enabled for cases where apps are used.

MozReview-Commit-ID: 775DZecc35t
2016-03-02 10:35:56 -06:00
J. Ryan Stinnett
3872b5e0b0 Bug 1238160 - Set frame type on TabContext. r=billm,mayhemer
This change renames TabContext::IsBrowserElement to IsIsolatedMozBrowserElement.
Other methods that pass these values around also have name changes.

Adds TabContext::IsMozBrowserElement which is set by the frame loader for all
browser frames.  This is in contrast to its previous implementation, which has
since been renamed IsIsolatedMozBrowserElement, since it checks isolated state
in OriginAttributes.

TabContext methods related to browser elements (and their callers) are updated
to use IsIsolatedMozBrowserElement when check isolation / origins and
IsMozBrowserElement when checking frame types.

MozReview-Commit-ID: DDMZTkSn5yd
2016-03-02 10:35:56 -06:00
J. Ryan Stinnett
6cde63d471 Bug 1238160 - Set docshell isolation mode. r=smaug
Renames nsDocShell isBrowser* attributes to add a "Moz" prefix for clarity.

Adds nsDocShell::GetIsIsolatedMozBrowserElement, which parallels
GetIsInIsolatedMozBrowserElement, but only checks the immediate docshell.

Adds nsDocShell::SetIsInIsolatedMozBrowserElement for the frame loader and tab
child to set the isolation state.

nsDocShell methods related to mozbrowser elements (and their callers) are
updated to use GetIs(In)?IsolatedMozBrowserElement when checking isolation /
origins and GetIsMozBrowserElement when checking frame types.

MozReview-Commit-ID: 6pGD5fF47ZN
2016-03-02 10:35:56 -06:00
J. Ryan Stinnett
23f50b043f Bug 1238160 - Set tab context's isolation from frame attr. r=smaug
Renames existing nsFrameLoader::OwnerIsBrowser* methods to add "Moz" prefix for
clarity.

Adds nsFrameLoader::OwnerIsIsolatedMozBrowserFrame which checks the noisolation
attribute of mozbrowser frames, if present.

This is used to set isolation in nsFrameLoader::GetNewTabContext only when true.

MozReview-Commit-ID: Dz02xBoKh1P
2016-03-02 10:35:56 -06:00
J. Ryan Stinnett
0af8bf06b1 Bug 1238160 - Rename OriginAttributes.mInBrowser and associated methods. r=bz,mayhemer
This change renames OriginAttributes.mInBrowser to mInIsolatedMozBrowser and
nsIPrincipal::GetIsInBrowserElement to GetIsInIsolatedMozBrowserElement.  Other
methods that pass these values around also have name changes.

Tokens such as "inBrowser" have previously been serialized into cache keys, used
as DB column names, stored in app registries, etc.  No changes are made to any
serialization formats.  Only runtime method and variable names are updated.

No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations.  These are corrected in subsequent patches
focused on behavior.

MozReview-Commit-ID: 66HfMlsXFLs
2016-03-02 10:35:56 -06:00
J. Ryan Stinnett
5e17839837 Bug 1238160 - Test mozbrowser APIs to ensure no content exposure. r=bz
Check the various mozbrowser APIs to ensure they are allowed when you have
browser permission and blocked when you don't (like regular web content).

MozReview-Commit-ID: FPDA1lEUwRq
2016-03-02 10:35:56 -06:00
Anthony Zhang
d74d1b9e79 Bug 1251667 - Add a measure SLOW_SCRIPT_PAGE_COUNT, which measures the number of pages per session that have slow scripts. r=wmccloskey
Slow script events are when the script hangs the page's process (that's the content process on e10s).

For further reference, see https://wiki.mozilla.org/Electrolysis/Release_Criteria/Slow_Script. The measure is necessary because SLOW_SCRIPT_NOTICE_COUNT is not comparable between e10s and non-e10s, while SLOW_SCRIPT_PAGE_COUNT will be. This is necessary for evaluating the slow script e10s release criteria.

The measure requires a new field in nsGlobalWindow because we need to keep track of when the page changes in order to know whether we need to count a slow script event. This is a relatively clean option compared to keeping track of that state in XPCJSRuntime or dom::Navigator.
2016-03-01 11:16:33 -05:00
Wes Kocher
cfefea5c8d Backed out changeset 96580db9b356 (bug 1252565) for test_recursion.html failures
MozReview-Commit-ID: 1ycmM8vfG3d
2016-03-01 15:40:46 -08:00
Kyle Machulis
30cd4b9ffe Bug 1240471 - Possibly remove invalid queries and post console messages on youtube rewrite; r=khuey fb=cpeterson 2016-03-01 14:05:29 -08:00
Boris Zbarsky
a930b43637 Bug 1252565. Make dom::WarningOnlyErrorReporter handle workers. r=bholley 2016-03-01 16:53:22 -05:00
Dave Huseby
0621eb9f1f Bug 1229222 - add chromeutils for the creation of origin attributes with the correct default values. r=sicking
(HEAD -> oa, refs/patches/oa/Bug_1229222)
Fixes Bug 1229222
2016-02-29 12:26:00 +01:00
Carsten "Tomcat" Book
e5734c6e2f Merge mozilla-central to mozilla-inbound 2016-03-01 15:25:31 +01:00
Andrea Marchesini
b8b6f23662 Bug 1250572 - Force a parent object in MessagePort/Channel and in StructuredCloneHolder, r=smaug 2016-03-01 15:21:11 +01:00
Ehsan Akhgari
a67a5febad Bug 1251875 - Part 1: Remove the dom.serviceWorkers.interception.enabled pref; r=bkelly 2016-03-01 09:16:38 -05:00
Daniel Holbert
cfda6970cc Bug 1247478: Rename FirstAdditionalAuthorSheet() to GetFirstAdditionalAuthorSheet(), since it can return null. r=heycam 2016-02-29 15:09:13 -08:00
Daniel Holbert
0da43437f8 Bug 1246464: Add 'const' to some stylesheet args in nsDocument methods. r=heycam 2016-02-29 13:24:25 -08:00
Boris Zbarsky
eb8fac0d27 Bug 1252123. Remove some unnecessary JSContext arguments from worker ScriptLoader methods. r=khuey 2016-02-29 14:52:42 -05:00
Boris Zbarsky
c1724e75b5 Bug 1252091. Add/RemoveFeature don't need a JSContext argument. r=khuey 2016-02-29 14:52:42 -05:00
Franziskus Kiefer
848fe314a2 Bug 1244116 - Telemetry for mixed content requests by plugins. r=smaug, p=ally
MozReview-Commit-ID: F9rOb1SdPnL
2016-02-16 15:46:36 +01:00
David Anderson
8385f81d79 Remove some static_casting in CompositorParent. (bug 1245765 part 5, r=mattwoodrow) 2016-02-29 01:53:14 -05:00
Carsten "Tomcat" Book
82e4b3a48c merge mozilla-inbound to mozilla-central a=merge 2016-03-01 12:01:58 +01:00
Huma Zafar
5d4f1a88a6 Bug 1206166 - Move FetchUtil::Consume methods into separate BodyUtil class and update Fetch.cpp and ServiceWorkerEvents.cpp accordingly. r=kitcambridge
MozReview-Commit-ID: KgEccQ2LPpC
2016-02-27 13:54:11 -08:00
Peter Van der Beken
6c442b47f3 Bug 1251655 - Remove support for JavaScript-DOM-class and JavaScript-DOM-interface. r=bz. 2016-02-14 15:59:48 +01:00