Граф коммитов

85572 Коммитов

Автор SHA1 Сообщение Дата
Tom Schuster 6bfc234bde Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/base. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D39780

--HG--
extra : moz-landing-system : lando
2019-07-30 17:51:37 +00:00
Tom Schuster af8f619ad2 Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/security. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D39779

--HG--
extra : moz-landing-system : lando
2019-07-30 07:23:18 +00:00
Paul Adenot 834e954d9f Bug 1570015 - Fix test_waveShaperGain.html by placing the <pre> tag before the script. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D39893

--HG--
extra : moz-landing-system : lando
2019-07-30 16:41:15 +00:00
Nika Layzell d665121e07 Bug 1568517 - Assert embedder exists when creating subframe WindowGlobalParent, r=farre
This asserts that the embedder is always set soon enough that we don't run into
the situation which caused the null deref fixed by bug 1565489.

Differential Revision: https://phabricator.services.mozilla.com/D39187

--HG--
extra : moz-landing-system : lando
2019-07-30 14:45:47 +00:00
Daniel Varga c7ecfc9e12 Backed out 9 changesets (bug 1387894) for wpt failures at /web-animations/timing-model/animations/finishing-an-animation.html on a CLOSED TREE
Backed out changeset 998582bf083d (bug 1387894)
Backed out changeset cd58aae7d47b (bug 1387894)
Backed out changeset a51919fb2062 (bug 1387894)
Backed out changeset ef7b589d751b (bug 1387894)
Backed out changeset 75c0249b594a (bug 1387894)
Backed out changeset 4a75f2556242 (bug 1387894)
Backed out changeset 0bff9ba4237c (bug 1387894)
Backed out changeset 80040c0a275e (bug 1387894)
Backed out changeset 02814f69872d (bug 1387894)
2019-07-30 21:05:59 +03:00
Tom Ritter 210fb2ea26 Bug 1387894, 1476950 - Fix test_restyles.html for unconditional clamping r=birtles,hiro
This refactors things to run until the animation is unthrottled. It confirms
the proper amount of time has passed; and then awaits another styling to ensure
that markers.length = 0 (unless it took very long (over 200ms) that it should
be 1.

Differential Revision: https://phabricator.services.mozilla.com/D38808

--HG--
extra : moz-landing-system : lando
2019-07-30 15:11:59 +00:00
Tom Ritter 905b162e22 Bug 1387894 - Fix the WPT and mochitest test_document-timeline.html for unconditional clamping r=birtles
We fix this by clamping the requestAnimationFrame timestamp in the test before comparing it.
We don't clamp the requestAnimationFrame timestamp normally because it would be meaningless:
rAF fires on a regular frequency and someone perfoming a fine-grained timing attack will be
able to determine the timestamp from when it fires.

We need to use parseFloat to knock off any extra epislon we gain.

This shouldn't cause any major blow-ups because timelines are disabled in release and beta,
so at least any potential fallout would be constrained.

Differential Revision: https://phabricator.services.mozilla.com/D38807

--HG--
extra : moz-landing-system : lando
2019-07-30 15:11:50 +00:00
Tom Ritter 83a41908c3 Bug 1387894 - Resolve timer intermittents when reduceTimerPrecision is disabled r=smaug
We unconditionally clamp all times to 20us and not just performance.now()
This will consistently apply a 'safe' minimal clamping (it's not safe but
I guess it's safer than ns-level precision) to all timestamps, and remove
intermittents that are caused by comparing a clamped performance.now() to
an unclamped [something else].

Differential Revision: https://phabricator.services.mozilla.com/D38806

--HG--
extra : moz-landing-system : lando
2019-07-30 15:11:41 +00:00
Simon Giesecke 943957f70b Bug 1565515 - Removed duplication between LengthOfEncodedBinary and CalcDecodedStringySize r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D38173

--HG--
extra : moz-landing-system : lando
2019-07-30 14:52:18 +00:00
Simon Giesecke a1847f67e9 Bug 1565515 - Define and use type aliases EncodedDataType r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D38172

--HG--
extra : moz-landing-system : lando
2019-07-30 14:52:04 +00:00
Simon Giesecke 41cbdf5f33 Bug 1565515 - Reduced code duplication in DecodeString/DecodeBinary r=ttung,asuth
EncodeString and EncodeBinary already use a common backend EncodeAsString,
the same should be done in decoding, as the encoding of a binary is
a special case of the encoding of a string.

Differential Revision: https://phabricator.services.mozilla.com/D38076

--HG--
extra : moz-landing-system : lando
2019-07-30 14:51:40 +00:00
Simon Giesecke 73777f4f14 Bug 1565515 - Move sortKey variable declaration close to usage r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D38075

--HG--
extra : moz-landing-system : lando
2019-07-30 14:51:21 +00:00
Simon Giesecke 7db6d8f44b Bug 1565515 - Added test keys with scalar ArrayBuffer and arrays containing ArrayBuffer r=asuth,ttung
Differential Revision: https://phabricator.services.mozilla.com/D37856

--HG--
extra : moz-landing-system : lando
2019-07-30 14:51:03 +00:00
Simon Giesecke 8a9fca7aca Bug 1565515 - Added note declaring that key list must be kept sorted r=asuth,ttung
Differential Revision: https://phabricator.services.mozilla.com/D37855

--HG--
extra : moz-landing-system : lando
2019-07-30 14:50:41 +00:00
Simon Giesecke d7d04c81b2 Bug 1565515 - Added diagnostic output r=asuth,ttung
Differential Revision: https://phabricator.services.mozilla.com/D37854

--HG--
extra : moz-landing-system : lando
2019-07-30 14:50:22 +00:00
Simon Giesecke 0b0984ae64 Bug 1565515 - Added handling of ArrayBuffer/binary keys to compareKeys functions r=asuth,ttung
Differential Revision: https://phabricator.services.mozilla.com/D37853

--HG--
extra : moz-landing-system : lando
2019-07-30 14:50:04 +00:00
Simon Giesecke 21e67a9adf Bug 1565515 - Added TODO comments on duplicated code r=asuth,ttung
Differential Revision: https://phabricator.services.mozilla.com/D37852

--HG--
extra : moz-landing-system : lando
2019-07-30 14:49:52 +00:00
Simon Giesecke 85f35fde04 Bug 1565515 - Fixed spelling mistake in comment r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D37851

--HG--
extra : moz-landing-system : lando
2019-07-30 14:49:31 +00:00
Simon Giesecke e4ddc09023 Bug 1565515 - Updated comment r=asuth,ttung
The comment referenced the former 3 prefix used for strings, but this is
no longer correct for strings (which now use a 0x30) prefix, and the
function has been generalized to also work for binaries, and got
a parameter aType specifying the prefix. Updated the comment accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D37850

--HG--
extra : moz-landing-system : lando
2019-07-30 14:49:12 +00:00
Simon Giesecke f1884a1dd7 Bug 1565515 - DecodeBinary violates contract for 0-sized binary r=asuth,ttung
Differential Revision: https://phabricator.services.mozilla.com/D37849

--HG--
extra : moz-landing-system : lando
2019-07-30 14:48:53 +00:00
Alex Catarineu 536fd2e65f Bug 1561322 - Allow spoofing strings in HTML forms r=baku,Pike
When privacy.spoof_english = 2, we should hide the user's
locale in content. So we use en-US default strings for HTML
form elements, such as a Submit button.

We also force GetLocalizedEllipsis() to always return the
ellipsis used by en-US.

Differential Revision: https://phabricator.services.mozilla.com/D35815

--HG--
extra : moz-landing-system : lando
2019-07-24 13:22:22 +00:00
Andreea Pavel 8cbd06b810 Backed out 8 changesets (bug 1387894) for build bustages on a CLOSED TREE
Backed out changeset 09785dc4c5aa (bug 1387894)
Backed out changeset 05728160b89e (bug 1387894)
Backed out changeset 01e5b31bcc17 (bug 1387894)
Backed out changeset c5e16646ddb1 (bug 1387894)
Backed out changeset d1f09b772bac (bug 1387894)
Backed out changeset de538a48f455 (bug 1387894)
Backed out changeset d49cd8ef0825 (bug 1387894)
Backed out changeset fcfe77fab0ec (bug 1387894)
2019-07-30 17:17:39 +03:00
Andreea Pavel 3f0fb9fec4 Backed out 12 changesets (bug 1565515) hazard failures on a CLOSED TREE
Backed out changeset 4d8c2c1bce2d (bug 1565515)
Backed out changeset 8619e09b03bb (bug 1565515)
Backed out changeset d70293010941 (bug 1565515)
Backed out changeset 90fb12799ecd (bug 1565515)
Backed out changeset 93be9fcab443 (bug 1565515)
Backed out changeset 91f546c40f98 (bug 1565515)
Backed out changeset 2c0fb0c0e228 (bug 1565515)
Backed out changeset 57ed49a17c9d (bug 1565515)
Backed out changeset 75cb7938f704 (bug 1565515)
Backed out changeset 2359da4989a7 (bug 1565515)
Backed out changeset 8f3493b2cae1 (bug 1565515)
Backed out changeset e0aa82bed5fa (bug 1565515)
2019-07-30 17:16:15 +03:00
Staś Małolepszy 157da38e6c Bug 1568914 - Update Fluent to @fluent/bundle 0.14.0 r=zbraniecki,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D39400

--HG--
extra : moz-landing-system : lando
2019-07-30 13:21:59 +00:00
Tom Ritter ab449f70cd Bug 1387894, 1476950 - Fix test_restyles.html for unconditional clamping r=birtles,hiro
This refactors things to run until the animation is unthrottled. It confirms
the proper amount of time has passed; and then awaits another styling to ensure
that markers.length = 0 (unless it took very long (over 200ms) that it should
be 1.

Differential Revision: https://phabricator.services.mozilla.com/D38808

--HG--
extra : moz-landing-system : lando
2019-07-30 13:19:05 +00:00
Tom Ritter d2f55fcd2f Bug 1387894 - Fix the WPT and mochitest test_document-timeline.html for unconditional clamping r=birtles
We fix this by clamping the requestAnimationFrame timestamp in the test before comparing it.
We don't clamp the requestAnimationFrame timestamp normally because it would be meaningless:
rAF fires on a regular frequency and someone perfoming a fine-grained timing attack will be
able to determine the timestamp from when it fires.

We need to use parseFloat to knock off any extra epislon we gain.

This shouldn't cause any major blow-ups because timelines are disabled in release and beta,
so at least any potential fallout would be constrained.

Differential Revision: https://phabricator.services.mozilla.com/D38807

--HG--
extra : moz-landing-system : lando
2019-07-30 13:19:05 +00:00
Tom Ritter b3e9fe99de Bug 1387894 - Resolve timer intermittents when reduceTimerPrecision is disabled r=smaug
We unconditionally clamp all times to 20us and not just performance.now()
This will consistently apply a 'safe' minimal clamping (it's not safe but
I guess it's safer than ns-level precision) to all timestamps, and remove
intermittents that are caused by comparing a clamped performance.now() to
an unclamped [something else].

Differential Revision: https://phabricator.services.mozilla.com/D38806

--HG--
extra : moz-landing-system : lando
2019-07-30 13:19:05 +00:00
Simon Giesecke ca5d9c23b2 Bug 1565515 - Removed duplication between LengthOfEncodedBinary and CalcDecodedStringySize r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D38173

--HG--
extra : moz-landing-system : lando
2019-07-29 09:27:18 +00:00
Simon Giesecke aad3e51566 Bug 1565515 - Define and use type aliases EncodedDataType r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D38172

--HG--
extra : moz-landing-system : lando
2019-07-29 09:27:02 +00:00
Simon Giesecke d0d7429bb9 Bug 1565515 - Reduced code duplication in DecodeString/DecodeBinary r=ttung,asuth
EncodeString and EncodeBinary already use a common backend EncodeAsString,
the same should be done in decoding, as the encoding of a binary is
a special case of the encoding of a string.

Differential Revision: https://phabricator.services.mozilla.com/D38076

--HG--
extra : moz-landing-system : lando
2019-07-29 09:26:46 +00:00
Simon Giesecke fd2c92c543 Bug 1565515 - Move sortKey variable declaration close to usage r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D38075

--HG--
extra : moz-landing-system : lando
2019-07-29 09:26:27 +00:00
Simon Giesecke 1fef183353 Bug 1565515 - Added test keys with scalar ArrayBuffer and arrays containing ArrayBuffer r=asuth,ttung
Differential Revision: https://phabricator.services.mozilla.com/D37856

--HG--
extra : moz-landing-system : lando
2019-07-29 09:26:09 +00:00
Simon Giesecke c7e4f34d60 Bug 1565515 - Added note declaring that key list must be kept sorted r=asuth,ttung
Differential Revision: https://phabricator.services.mozilla.com/D37855

--HG--
extra : moz-landing-system : lando
2019-07-29 09:25:47 +00:00
Simon Giesecke b0bfe9cbe5 Bug 1565515 - Added diagnostic output r=asuth,ttung
Differential Revision: https://phabricator.services.mozilla.com/D37854

--HG--
extra : moz-landing-system : lando
2019-07-29 09:25:30 +00:00
Simon Giesecke 2857857b7f Bug 1565515 - Added handling of ArrayBuffer/binary keys to compareKeys functions r=asuth,ttung
Differential Revision: https://phabricator.services.mozilla.com/D37853

--HG--
extra : moz-landing-system : lando
2019-07-29 09:25:12 +00:00
Simon Giesecke 1e875b717d Bug 1565515 - Added TODO comments on duplicated code r=asuth,ttung
Differential Revision: https://phabricator.services.mozilla.com/D37852

--HG--
extra : moz-landing-system : lando
2019-07-29 09:24:53 +00:00
Simon Giesecke 4873b54cc9 Bug 1565515 - Fixed spelling mistake in comment r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D37851

--HG--
extra : moz-landing-system : lando
2019-07-29 09:24:36 +00:00
Simon Giesecke 02061bf85c Bug 1565515 - Updated comment r=asuth,ttung
The comment referenced the former 3 prefix used for strings, but this is
no longer correct for strings (which now use a 0x30) prefix, and the
function has been generalized to also work for binaries, and got
a parameter aType specifying the prefix. Updated the comment accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D37850

--HG--
extra : moz-landing-system : lando
2019-07-29 09:24:19 +00:00
Simon Giesecke deabff6406 Bug 1565515 - DecodeBinary violates contract for 0-sized binary r=asuth,ttung
Differential Revision: https://phabricator.services.mozilla.com/D37849

--HG--
extra : moz-landing-system : lando
2019-07-29 09:24:01 +00:00
Imanol Fernandez 5c78386c22 Bug 1569605 - Reuse WebVR FrameData Float32Arrays. r=kip,rbarker
Summary Do not recreate WebVR FrameData Float32Arrays every frame.:

Differential Revision: https://phabricator.services.mozilla.com/D39683

--HG--
extra : moz-landing-system : lando
2019-07-30 00:23:38 +00:00
Christoph Kerschbaumer ad40847192 Bug 1567877: Apply Meta CSP to about:devtools-toolbox. r=jdescottes,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D39328

--HG--
extra : moz-landing-system : lando
2019-07-30 07:14:09 +00:00
Nicholas Nethercote cd426e3ad2 Bug 1569526 - Remove return values from `Add*VarCache()`. r=KrisWright
They're infallible in practice and always `NS_OK`. (This stems from
`AddVarCacheNoAssignment()` always returning `NS_OK`.)

As a result, the commit removes lots of unnecessary checks.

Differential Revision: https://phabricator.services.mozilla.com/D39804

--HG--
extra : moz-landing-system : lando
2019-07-30 06:19:46 +00:00
Will Hawkins bfcfe34e57 Bug 1459711: Ensure that navigation.performance.type is 2 when restoring a document from the session history. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D39551

--HG--
extra : moz-landing-system : lando
2019-07-29 20:28:38 +00:00
Nika Layzell a4f8f4db51 Bug 1550560 - Part 5: Remove unnecessary Alloc method for PBrowserBridge, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D39536

--HG--
extra : moz-landing-system : lando
2019-07-29 19:54:21 +00:00
Nika Layzell 2698092f32 Bug 1550560 - Part 3: Make BrowserBridgeParent refcounted in IPDL, r=mccr8
This is an example refcounted actor which was easy enough to port over as an
initial test. More can be ported in the future, potentially alongside removing
`mIPCOpen`.

Differential Revision: https://phabricator.services.mozilla.com/D39503

--HG--
extra : moz-landing-system : lando
2019-07-29 19:54:18 +00:00
Ehsan Akhgari 5aacc9192f Bug 1569677 - Part 2: Move HTMLDocument.userInteractionForTesting to Document; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D39724

--HG--
extra : moz-landing-system : lando
2019-07-29 19:32:53 +00:00
Ehsan Akhgari 373fbdc037 Bug 1569677 - Part 1: Move the Safebrowsing helpers from HTMLDocument to Document; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D39723

--HG--
extra : moz-landing-system : lando
2019-07-29 19:32:51 +00:00
Timothy Nikkel 274b2a9485 Bug 1565542. We need to check to resolve image decode promises when we get the frame update notification too. r=aosmond
When we reload the document the destruction of the old document triggers a discard request for the image. If timing is right we haven't locked the image in the new document yet so it discards.

We call LoadImage on the image, it returns the existing entry from the image cache, but it needs to validate. When it validates we send out all the progress in the progress tracker already. This includes frame complete and decode complete even though we have no decoded surfaces for this image right now.

The RequestDecodeForSize call in nsImageLoadingContent::MaybeResolveDecodePromises triggers a decode. When the decode finishes we send a frame update notification but we never send frame complete or decode complete because those are permanent once they happen.

Differential Revision: https://phabricator.services.mozilla.com/D39585

--HG--
extra : moz-landing-system : lando
2019-07-29 13:05:14 +00:00
Kristen Wright 05b0ade9f4 Bug 1569004 - Convert dom.timeout.enable_budget_timer_throttling to static pref. r=njn
Converts dom.timeout.enable_budget_timer_throttling from varcache pref to static pref, removes entry from all.js, adds entry to StaticPrefList.yaml. Uses the all.js value and not the value declared in TimeoutManager.cpp. Since this removes the last varcache pref from TimeoutManager::Initialize(), I also removed the Initialize() function and its call in nsGlobalWindowInner.

Differential Revision: https://phabricator.services.mozilla.com/D39455

--HG--
extra : moz-landing-system : lando
2019-07-26 20:14:48 +00:00
Kristen Wright c6f7b5dbfa Bug 1569004 - Convert dom.timeout.budget_throttling_max_delay to static pref. r=njn
Converts dom.timeout.budget_throttling_max_delay varcache pref to static pref, removes entry from all.js, and adds entry to StaticPrefList.yaml

Differential Revision: https://phabricator.services.mozilla.com/D39451

--HG--
extra : moz-landing-system : lando
2019-07-26 21:11:41 +00:00