Commit Graph

44638 Commits

Author SHA1 Message Date
Ehsan Akhgari
e2ddfb8b1f Bug 1251448 - Add support for RequestInit.referrer; r=jdm 2016-03-02 18:18:27 -05: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
Mats Palmgren
8e023b6cac Bug 1250315 - Make <input type=number readonly> match :-moz-read-only and allow context events. r=jwatt 2016-03-02 23:39:34 +01:00
Gerald Squelart
a126532ab9 Bug 1242343 - p2. Blacklist msmpeg2vdec.dll 12.0.9200.16426 & .17037 - r=cpearce
MozReview-Commit-ID: C6osQ3ubhH1
2016-03-03 08:40:26 +11:00
Marco Castelluccio
7810b1db0b Bug 1197461 - Tests for Permissions.revoke. r=poiru,baku 2016-03-02 21:09:56 +00:00
Marco Castelluccio
830d42aa35 Bug 1197461 - e10s support for Permissions.revoke. r=poiru 2016-03-02 21:09:48 +00:00
Marco Castelluccio
16da4bf742 Bug 1197461 - Implement Permissions.revoke. r=poiru,baku 2016-03-02 21:09:38 +00:00
Boris Zbarsky
1c341f9698 Bug 1252565 part 2. Make dom::WarningOnlyErrorReporter handle workers. r=bholley 2016-03-01 16:53:22 -05:00
Ruxton
8f93bda5a8 Bug 1033144 - Part 2: Add tests for TextTrack cuechange event. r=rillian 2016-03-02 11:35:09 -08:00
Ruxton
aec2f1b168 Bug 1033144 - Part 1: Dispatch 'cuechange' event on TextTracks. r=rillian,bz 2016-03-02 11:35:09 -08: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
ef479a2a89 bug 1252687 - make Migration's ctor constexpr r=bz 2016-03-02 13:37:00 -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
6efece4a39 Bug 1250949. Add some better documentation to the dictionary init codegen. r=ehsan 2016-03-02 12:38:24 -05:00
Boris Zbarsky
1c26f466b1 Bug 1252592. JS warnings should not trigger error events on shared workers. r=khuey 2016-03-01 16:53:26 -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
Boris Zbarsky
59de002d86 Bug 1072144 part 5. Stop fiddling with compartments on the JSContext before calling PostRun in WorkerRunnable::Run. Add some documentation explaining what's going on. r=khuey 2016-03-01 16:52:26 -05:00
Boris Zbarsky
f974cf96c5 Bug 1072144 part 4. Add a WorkerRunnable::PreRun so that we can move worker global creation to it and always have an AutoEntryScript by the time we're evaluating the main worker script. r=khuey 2016-03-01 16:52:26 -05:00
Boris Zbarsky
ead0e62662 Bug 1072144 part 3. Hoist the exception reporting out of WorkerRunnable::PostRun into WorkerRunnable::Run and make it unconditional. r=khuey 2016-03-01 16:52:26 -05:00
Boris Zbarsky
cc5af5d3b0 Bug 1072144 part 2. When UnregisterWorker tries to ScheduleWorker and that throws, just suppress the exception: there is no good place to report it anyway. r=khuey 2016-03-01 16:52:26 -05:00
Boris Zbarsky
1151e31bc7 Bug 1072144 part 1. Just release-assert that Promise::Resolve does not fail in service worker code. It can only do that on OOM or overrecursion anyway, and overrecursion is not likely if we're coming right off a runnable. r=khuey 2016-03-01 16:52:13 -05:00
Jan-Ivar Bruaroey
88fd4efbef Bug 1250990 - Make RTCRtpEncodingParameters.scaleResolutionDownBy work with H.264 unicast. r=jesup
MozReview-Commit-ID: 2j8rRzZemql
2016-02-28 09:19:23 -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
eb232136f4 Bug 1238160 - Rename nsILoadContext::GetIsInBrowserElement. r=smaug,mayhemer
This change renames nsILoadContext::GetIsInBrowserElement to
GetIsInIsolatedMozBrowserElement.  Other methods that pass these values around
also have name changes.

Tokens such as "isInBrowserElement" 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: CUttXANQjSv
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
Nathan Froyd
30f8bb9b53 Bug 1252198 - use UniquePtr instead of ScopedFreePtr in MediaEngineTabVideoSource; r=gerald
UniquePtr is more standard than ScopedFreePtr; using standard constructs
whenever possible is preferable.  In this case, we're allocating a
simple block of memory, so we can allocate an |unsigned char[]| via
MakeUnique for the same effect.
2016-02-29 10:20:01 -05:00
Jonathan Watt
6e065e1657 Bug 763784 - Make VectorImage::GetAnimated check for CSS animations. r=dholbert 2016-02-22 13:05:20 +00:00
Dan Minor
552e030729 Bug 1158741 - Implement a version of omxSP_FFTInv_CCSToR_F32_Sfs in openmax DL's FFT that is not scaled r=padenot
The new routine actually multiplies by two for consistency with the other FFT
routines in use.

MozReview-Commit-ID: Hk2Dg3fR2cQ
2016-01-25 06:38:29 -05: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
JW Wang
978631277d Bug 1252344. Part 2 - remove unnecessary checks from MediaDecoderStateMachine::NeedToDecodeAudio(). r=bechen.
MozReview-Commit-ID: LiFvkp9RNsI
2016-03-02 10:39:22 +08:00
JW Wang
48fc8b32bc Bug 1252344. Part 1 - remove unnecessary checks from MediaDecoderStateMachine::NeedToDecodeVideo(). r=bechen.
MozReview-Commit-ID: Jgo9g5B9yq
2016-03-02 10:39:20 +08:00
Tom Tung
c9a7e8c0a5 Bug 1238845 - Implement UUID helper - dom/bluetooth & dom/webidl & layout/build change. r=jocelyn, r=bz 2016-01-15 19:30:46 +08:00
Daisuke Akatsuka
8c9d621f63 Bug 1248338 - Implement iterationStart; r=birtles 2016-03-02 16:23:34 +09:00
Ryan VanderMeulen
5788f81bac Bug 1252273 - Skip a couple timeout-prone dom/events tests on OSX e10s. 2016-02-29 18:04:51 -05:00
Ryan VanderMeulen
d17aab1d33 Bug 1252230 - Skip test_painting.html on OSX e10s. 2016-02-29 15:45:49 -05:00
Nathan Froyd
6ada8a73f7 Bug 1251715 - use UniquePtr instead of ScopedDeletePtr in dom/media/; r=gerald
UniquePtr is more standard than ScopedDeletePtr; using standard
constructs whenever possible is preferable.
2016-02-26 14:21:05 -05:00
Christoph Kerschbaumer
969767cb13 Bug 1232903 - Skip Security checks if triggeringPrincipal is SystemPrincipal (r=sicking) 2016-03-01 16:11:37 -08:00
Wes Kocher
56a7f3bff4 Backed out 6 changesets (bug 1072144) for test_recursion.html failures
Backed out changeset ac15fe0e71fd (bug 1072144)
Backed out changeset b666d48a267d (bug 1072144)
Backed out changeset 0f0464ef08ed (bug 1072144)
Backed out changeset 7ba5f3b95022 (bug 1072144)
Backed out changeset 1912f838fcaa (bug 1072144)
Backed out changeset 145c9bb59b97 (bug 1072144)

MozReview-Commit-ID: 7cl4RtpHSfl
2016-03-01 15:41:24 -08: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
Wes Kocher
558a1cf79f Backed out changeset aad89b3b0eb1 (bug 1252592) for test_recursion.html failures
MozReview-Commit-ID: 4DqAlBimVRk
2016-03-01 15:40:15 -08:00
Jeff Gilbert
9c39bcdb8e Bug 1247804 - Enable seamless cubemaps where available. - r=jrmuizel 2016-02-11 17:57:25 -08:00
Wes Kocher
092655aa0a Merge m-c to inbound, a=merge
MozReview-Commit-ID: 3PWdAnh0hk5
2016-03-01 15:29:43 -08:00
Jeff Muizelaar
fa04c0c56c Bug 1247327. Fix WebGL acceptance rates in telemetry. r=milan
We were not checking for failure after initialization.
2016-03-01 18:20:45 -05:00
Wes Kocher
0afae09150 Backed out 2 changesets (bug 1251714, bug 1251715) for gtest failures in media code a=backout
Backed out changeset 1bbd0cd10f76 (bug 1251714)
Backed out changeset 80b197c5608f (bug 1251715)

MozReview-Commit-ID: EHOtiKLS4Xr
2016-03-01 11:36:35 -08:00