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

701791 Коммитов

Автор SHA1 Сообщение Дата
Andrew Halberstadt 822b827fdc Bug 1625200 - [taskgraph] Implement an 'All' composite strategy, r=tomprince
I'd like to implement a 'backstop' strategy, such that it will prevent all other
optimizers from removing tasks under certain conditions (e.g every 10th push).

The nicest way to implement this seems to be an 'All' composite strategy
(similar to 'Either' which this patch renames to 'Any'). This means we could
do something like:

All("seta", "backstop")

which means we would only remove tasks if *all* substrategies say to remove
tasks.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 14:38:01 +00:00
Stefan Hindli fb36126f61 Backed out 15 changesets (bug 1607984) for causing very frequent reftest faiures CLOSED TREE
Backed out changeset 5497c90b03de (bug 1607984)
Backed out changeset 71dffa590c10 (bug 1607984)
Backed out changeset fdacabac2c54 (bug 1607984)
Backed out changeset 5f9fe17e46b8 (bug 1607984)
Backed out changeset 8f9058eb821d (bug 1607984)
Backed out changeset 025af7792f2a (bug 1607984)
Backed out changeset c7edd070b2f3 (bug 1607984)
Backed out changeset 8e7c95d322e8 (bug 1607984)
Backed out changeset e51f6b7a745c (bug 1607984)
Backed out changeset 979d99eb12d1 (bug 1607984)
Backed out changeset f554d4ce6718 (bug 1607984)
Backed out changeset fe84e5c64b4e (bug 1607984)
Backed out changeset 05d2032060db (bug 1607984)
Backed out changeset 07ce7b11fee9 (bug 1607984)
Backed out changeset 718d89be09d2 (bug 1607984)
2020-04-15 18:33:24 +03:00
Gijs Kruitbosch bfae59a15d Bug 1526890 - enforce default handlers use https, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D70613

--HG--
extra : moz-landing-system : lando
2020-04-15 14:49:15 +00:00
Emilio Cobos Álvarez 782b4f85cf Bug 1625786 - Make context menu for images properly check for revoked blob URIs. r=Gijs
This fixes the user-facing issue. This skips the "open in window" and "open in
tab" tests because they're broken due to bug 1626573.

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

--HG--
rename : browser/base/content/test/contextMenu/browser_canvas_view_image.js => browser/base/content/test/contextMenu/browser_view_image.js
extra : moz-landing-system : lando
2020-04-15 14:46:58 +00:00
Emilio Cobos Álvarez 30c6b93dd7 Bug 1625786 - Fix HTMLImageElement.currentSrc when we share the underlying blob image data. r=tnikkel
This fixes the web-observable bits, but still not the context menu. Patch
incoming for that.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 14:49:45 +00:00
Luca Greco 767f9ec174 Bug 1629985 - Remove expired telemetry event addonsManager.blocklistUpdateError. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D71009

--HG--
extra : moz-landing-system : lando
2020-04-15 12:28:28 +00:00
Jonathan Kew 230f11b26b Bug 1629787 - Initialize font metrics via harfbuzz API rather than reading tables directly, so that variations are respected. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D71029

--HG--
extra : moz-landing-system : lando
2020-04-15 14:14:55 +00:00
Johann Hofmann 0ac975c8b0 Bug 1628743 - Enable cookie purging by default in Nightly, clean up logging prefs. r=ewright
Differential Revision: https://phabricator.services.mozilla.com/D70940

--HG--
extra : moz-landing-system : lando
2020-04-15 14:22:14 +00:00
emcminn 97f464f187 Bug 1625913 - Background size and padding fix for Onboarding cards r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D70412

--HG--
extra : moz-landing-system : lando
2020-04-15 13:59:10 +00:00
Tetsuharu Ohzeki 884670d463 Bug 1597435 - part 2: Fix uses of nsIDocShellTreeItem in nsGlobalWindowOuter::SetInitialPrincipalToSubject. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D69011

--HG--
extra : moz-landing-system : lando
2020-04-15 13:42:40 +00:00
Tetsuharu Ohzeki 93d8a8a0c8 Bug 1597435 - part 1: Update the comment obsoleted by bug 1616353. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D70545

--HG--
extra : moz-landing-system : lando
2020-04-15 13:42:27 +00:00
André Bargull 0b6d9349df Bug 1629833 - Part 5: Move a variable comment to the variable declaration. r=yulia
It's probably more helpful to have the variable documentation near the
declaration. Also amends the description to cover normal name assignments.

Depends on D70863

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

--HG--
extra : moz-landing-system : lando
2020-04-15 13:28:40 +00:00
André Bargull 648666d512 Bug 1629833 - Part 4: Remove unnecessary manual lifetime management of Maybe<> variables. r=yulia
`~Maybe()` will perform the clean-up anyway, so we don't really need to call
`reset()` manually here.

Depends on D70862

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:33:46 +00:00
André Bargull a0b93ccdbf Bug 1629833 - Part 3: Reduce code duplication for assignment operations. r=yulia
The comment about handling name assignments separately predates `NameOpEmitter`.
Using `NameOpEmitter` we don't have to worry choosing the correct bytecode
operations and when to emit `BindName`.

Depends on D70861

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:33:25 +00:00
André Bargull a4a6ee2c56 Bug 1629833 - Part 2: Pretty print compound assignment in disassembler. r=yulia
Depends on D70860

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:32:19 +00:00
André Bargull 4aee86ee3d Bug 1629833 - Part 1: Add missing source-note for compound assignment. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D70860

--HG--
extra : moz-landing-system : lando
2020-04-15 08:32:11 +00:00
Andy Wingo 5ac664ca0b Bug 1629780 - Make users of ArgTypeVector::length explicitly include/exclude stack results arg r=lth
Differential Revision: https://phabricator.services.mozilla.com/D70806

--HG--
extra : moz-landing-system : lando
2020-04-15 12:01:11 +00:00
Andrea Marchesini 1f943fda52 Bug 1629911 - Disable layout-animations-disabled-violation-report-keyframes-tentative.html WPT, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D71030

--HG--
extra : moz-landing-system : lando
2020-04-15 12:15:28 +00:00
Stefan Hindli c0c31630e6 Backed out 2 changesets (bug 1626573) for perma bc failures in browser/base/content/test/contextMenu/browser_contextmenu_loadblobinnewtab.js CLOSED TREE
Backed out changeset d2ee826f13fa (bug 1626573)
Backed out changeset cd9de3c507ff (bug 1626573)
2020-04-15 15:08:08 +03:00
tobias 65b3128769 Bug 1462989 - Add tests for merging Content-Security-Policy headers and fix existing ones r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D63556

--HG--
extra : moz-landing-system : lando
2020-04-15 11:47:01 +00:00
tobias a313e53da8 Bug 1462989 - Force merging of Content-Security-Policy header r=mixedpuppy
Headers that are not present in the original request but are added by two or
more competing extensions are not merged, but only one of the changes is
applied. Since this causes issues with privacy and security enhancing
extensions trying to tighten up CSP, this introduces a special case to
explicitly always merge the CSP header.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 09:35:35 +00:00
Daisuke Akatsuka 9795757724 Bug 1625132: Add telemetry for MDN link. r=Honza,fscholz
Differential Revision: https://phabricator.services.mozilla.com/D70485

--HG--
extra : moz-landing-system : lando
2020-04-15 11:40:22 +00:00
Nicolas Chevobbe 4120c2ae2c Bug 1628994 - Don't render input related elements in browser console when devtools.chrome.enabled is not true. r=jlast.
When the pref is not set to true, we should not display the input,
but also the editor toolbar, the instant evaluation result and
the editor resizer.
The existing test is modified to ensure we cover all these elements.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 11:27:57 +00:00
André Bargull 4e03b316ef Bug 1629106 - Part 2: Enable test262 tests for Logical Assignment Operators proposal. r=yulia
Depends on D70823

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

--HG--
extra : moz-landing-system : lando
2020-04-15 09:16:09 +00:00
André Bargull 983a650c4b Bug 1629106 - Part 1: Implement Logical Assignment Operators proposal. r=yulia
Restricted to Nightly because there's still an open issue about inferred
function names and because the proposal was only recently moved to stage 3.

Depends on D70821

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

--HG--
extra : moz-landing-system : lando
2020-04-15 09:15:22 +00:00
André Bargull a637f58fb8 Bug 1629795 - Part 3: Ignore exceptions in IteratorClose for Throw completions. r=arai
Implements the changes from: https://github.com/tc39/ecma262/pull/1408

The spec PR requires to start the non-syntactic `try` block before retrieving
the "return" property and checking whether or not the "return" property is
callable. As part of this change we can also reorder the other byte code
instructions, which enables us to make the code more similar to normal JS code.
The equivalent JS code is documented in the added comments. Furthermore these
changes allow us to remove the manual stack depth fixups.

Depends on D70819

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

--HG--
extra : moz-landing-system : lando
2020-04-15 09:54:43 +00:00
André Bargull ebfbb8b7a3 Bug 1629795 - Part 2: Replace JSOp::Pick with JSOp::Swap if possible. r=arai
Updates the two callers to `JSOp::Pick` which can be optimised to `JSOp::Swap`.

Using `JSOp::Swap` saves one byte when compared to `JSOp::Pick`.

Depends on D70817

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

--HG--
extra : moz-landing-system : lando
2020-04-14 14:40:36 +00:00
André Bargull 7aa55e8355 Bug 1629795 - Part 1: Omit "..." when disassembling zero-args call. r=arai
Omit the ellipsis characters when the call has zero arguments. This makes the
disassembly of iterator code a bit more readable, because we're now no longer
displaying additional "..." strings when the call has no arguments.

Depends on D70816

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

--HG--
extra : moz-landing-system : lando
2020-04-14 14:40:36 +00:00
André Bargull d6a7fbec08 Bug 1629794: Handle absent arguments in AsyncFromSyncIteratorPrototype. r=yulia
We're using a shared implementation for the "next", "return", and "throw"
methods, so we only need to adjust a single line of code.

Spec PR: https://github.com/tc39/ecma262/pull/1776

Depends on D70815

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

--HG--
extra : moz-landing-system : lando
2020-04-14 14:40:35 +00:00
André Bargull cbef056bfb Bug 1617585: Remove the revoked proxy check from ProxyCreate. r=evilpie
Implements the changes from <https://github.com/tc39/ecma262/pull/1814>.

Depends on D70814

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

--HG--
extra : moz-landing-system : lando
2020-04-14 10:09:58 +00:00
André Bargull eec403b49d Bug 1629793: Allow standalone 'static' as a class instance field name. r=arai
Class instance fields can be named "static", so we need to handle the
following three cases:

- `TokenKind::Assign` (for `class { static = <expr>; }`),
- `TokenKind::Semi` (for: `class { static; }`),
- and `TokenKind::RightCurly` (for `class { static }`).

Depends on D70813

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

--HG--
extra : moz-landing-system : lando
2020-04-14 14:40:05 +00:00
André Bargull fde26318ab Bug 1629792 - Part 3: Update test262 skip list. r=yulia
Depends on D70812

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

--HG--
extra : moz-landing-system : lando
2020-04-14 14:39:04 +00:00
André Bargull 45e35ff912 Bug 1629792 - Part 2: Update test262 April 14 2020. r=yulia
Depends on D70811

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

--HG--
rename : js/src/tests/test262/built-ins/AggregateError/errors-iterabletolist-failures.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/errors-iterabletolist-failures.js
rename : js/src/tests/test262/built-ins/AggregateError/errors-iterabletolist.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/errors-iterabletolist.js
rename : js/src/tests/test262/built-ins/AggregateError/length.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/length.js
rename : js/src/tests/test262/built-ins/AggregateError/message-method-prop-cast.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/message-method-prop-cast.js
rename : js/src/tests/test262/built-ins/AggregateError/message-method-prop.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/message-method-prop.js
rename : js/src/tests/test262/built-ins/AggregateError/message-tostring-abrupt-symbol.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/message-tostring-abrupt-symbol.js
rename : js/src/tests/test262/built-ins/AggregateError/message-tostring-abrupt.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/message-tostring-abrupt.js
rename : js/src/tests/test262/built-ins/AggregateError/message-undefined-no-prop.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/message-undefined-no-prop.js
rename : js/src/tests/test262/built-ins/AggregateError/name.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/name.js
rename : js/src/tests/test262/built-ins/AggregateError/newtarget-proto-custom.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/newtarget-proto-custom.js
rename : js/src/tests/test262/built-ins/AggregateError/newtarget-proto-fallback.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/newtarget-proto-fallback.js
rename : js/src/tests/test262/built-ins/AggregateError/newtarget-proto.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/newtarget-proto.js
rename : js/src/tests/test262/built-ins/AggregateError/prop-desc.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/prop-desc.js
rename : js/src/tests/test262/built-ins/AggregateError/proto.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/proto.js
rename : js/src/tests/test262/built-ins/AggregateError/prototype/constructor.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/constructor.js
rename : js/src/tests/test262/built-ins/AggregateError/prototype/errors/invoked-as-accessor.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors/invoked-as-accessor.js
rename : js/src/tests/test262/built-ins/AggregateError/prototype/errors/invoked-as-func.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors/invoked-as-func.js
rename : js/src/tests/test262/built-ins/AggregateError/prototype/errors/length.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors/length.js
rename : js/src/tests/test262/built-ins/AggregateError/prototype/errors/name.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors/name.js
rename : js/src/tests/test262/built-ins/AggregateError/prototype/errors/prop-desc.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors/prop-desc.js
rename : js/src/tests/test262/built-ins/AggregateError/prototype/errors/return-from-iterable-errors.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors/return-from-iterable-errors.js
rename : js/src/tests/test262/built-ins/AggregateError/prototype/errors/return-new-array-from-list.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors/return-new-array-from-list.js
rename : js/src/tests/test262/built-ins/AggregateError/prototype/errors/this-has-no-typedarrayname-internal.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors/this-has-no-typedarrayname-internal.js
rename : js/src/tests/test262/built-ins/AggregateError/prototype/errors/this-is-not-object.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors/this-is-not-object.js
rename : js/src/tests/test262/built-ins/AggregateError/prototype/message.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/message.js
rename : js/src/tests/test262/built-ins/AggregateError/prototype/name.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/name.js
rename : js/src/tests/test262/built-ins/AggregateError/prototype/prop-desc.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/prop-desc.js
rename : js/src/tests/test262/built-ins/AggregateError/prototype/proto.js => js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/proto.js
rename : js/src/tests/test262/built-ins/Proxy/set/trap-is-undefined-receiver.js => js/src/tests/test262/built-ins/Proxy/set/trap-is-null-receiver.js
rename : js/src/tests/test262/built-ins/RegExp/unicode_restricted_incomple_quantifier.js => js/src/tests/test262/built-ins/RegExp/unicode_restricted_incomplete_quantifier.js
rename : js/src/tests/test262/built-ins/String/prototype/replaceAll/searchValue-replace-method-abrupt.js => js/src/tests/test262/built-ins/String/prototype/replaceAll/searchValue-replacer-method-abrupt.js
extra : moz-landing-system : lando
2020-04-14 14:39:04 +00:00
André Bargull 157db84afc Bug 1629792 - Part 1: Update test262 features list. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D70811

--HG--
extra : moz-landing-system : lando
2020-04-14 14:39:03 +00:00
André Bargull 2de8122c49 Bug 1628836: Add missing JSOp::Pow case for string-int32 arithmetic in CacheIR. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D70807

--HG--
extra : moz-landing-system : lando
2020-04-15 10:05:09 +00:00
Subhamoy Sengupta 258bf85876 Bug 1626573 - P2 - Browser Mochitests added to test if opening blob URL in a new tab by right clicking works r=baku
Two cases have been tested:

  1. Right-click opening a blob URL
  2. Right-click opening a blob URL, which points to a blob of type html, which fetches another blob URL

Depends on D69717

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:39:28 +00:00
Subhamoy Sengupta da366d3679 Bug 1626573 - P1 - BrowsingContext transmits BlobURL before loading an URI if URI is a BlobURL r=baku
Differential Revision: https://phabricator.services.mozilla.com/D69717

--HG--
extra : moz-landing-system : lando
2020-04-15 08:57:44 +00:00
Kagami Sascha Rosylight 77374f6a32 Bug 1623764 - Remove duplicate lines in PeekOffsetParagraph r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D70925

--HG--
extra : moz-landing-system : lando
2020-04-14 21:37:53 +00:00
Ryan Pauls d6aeea13b9 Bug 1626762 Removed the else statement to improve readability and better meet guidelines as per http://clang.llvm.org/extra/clang-tidy/checks/readability-else-after-return.html r=sylvestre
Added braces around statements as per code review bot.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 11:07:44 +00:00
Jean-Yves Avenard ae2393d249 Bug 1607984 - P16. Always whitelist file. r=markh
This file will be removed in bug 1628752 anyway.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:57:31 +00:00
Jean-Yves Avenard 3270a01575 Bug 1607984 - P15. Wait for the load to start before setting the event handler. r=Jamie
addA11yLoadEvent gets the contentWindow and wait for the document from that window to fire the load event.

Enabling the DocumentChannel for parent process load (or here in non-e10s mode) we have one extra event loop before the load starts.
So the window passed to addA11yLoadEvent would have been of the about:blank page.

The current code was based on an observable behaviour which was that the load was occuring synchronously.

DocumentChannel broke that assumption.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:57:31 +00:00
Jean-Yves Avenard 7cfca3f287 Bug 1607984 - P14. Fix test_bug1339722.html when using PPDC. r=valentin
When starting a load via the ParentProcessDocumentChannel, the event http-on-modify-request will be fired before the DocumentLoadListener has a chance to set the notificationCallback attribute.
When using a DocumentChannel, this test will not trigger the expected codepath as the DOMWindowCreated event will be fired once the channel is fully up and running; which in effect is also a fix of the original bug 1339722

Instead we use the document-on-modify-request event when the DocumentChannel is enabled.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:57:31 +00:00
Jean-Yves Avenard b956724763 Bug 1607984 - P13. Proxy the first http-on-opening-request event to the DocumentChannel. r=mayhemer
Some tests rely on this event to start action. The DocumentChannel had no equivalent. We make the ParentProcessDocumentChannel listen to this event and if it matches the nsIChannel currently in use in the DocumentLoadListener than we emit a similar document-on-modify-request event on the DocumentChannel.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:57:30 +00:00
Jean-Yves Avenard 6f520a712b Bug 1607984 - P12. Start parent load via DocumentChannel. r=mayhemer,nika,mattwoodrow
Add ParentProcessDocumentChannel object. This object is a DocumentChannel that will start a channel load from the parent process via a DocumentChannel.

The aim of this task is two-fold.
1- Be consistent on how we handle redirects before continuing the load on the final channel.
2- Prepare to initiate a process switch when needed without having to go via an intermediary content process, saving a process switch. This task will be done in a follow-up task.

The behaviour of the ParentProcessDocumentChannel is similar in logic to the DocumentChannelChild/DocumentChannelParent pair.
The ParentProcessDocumentChannel sets up a DocumentLoadListener, have it handle the redirects and upon completion continue the load on the final channel.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:57:30 +00:00
Jean-Yves Avenard fd8f717420 Bug 1607984 - P11. Don't assume the page will be loaded synchronously. r=zombie
We must wait for the iframe created by extension1 to be fully loaded before we can attempt to send a message to it.
So we send a message when it is ready, and suspend the execution until this message is received.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 10:06:24 +00:00
Jean-Yves Avenard cb1842f6c8 Bug 1607984 - P10. Wait until OnStopRequest has been called to clear mRequest. ?valentin r=valentin
The code assumed that nsJARChannel::RetargetDeliveryTo would have been called synchronously from nsJARChannel::OnStartRequest, which would be true if we weren't using a DocumentChannel.

The DocumentLoadListener queue the calls to OnStartRequest until the final redirect.
nsJARChannel::RetargetDelivery mRequest member is be set to forward the call.
So we need to only reset it once OnStopRequest has been received.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:57:31 +00:00
Jean-Yves Avenard e6d0591b25 Bug 1607984 - P9. Implement nsIThreadRetargetableStreamListener in ParentChannelListerner. r=valentin
The DocumentLoadListener is setting up a ParentChannelListener to go in between the normal listener->channel chain.
ParentChannelListener not implementing nsIThreadRetargetableStreamListener would prevent a nsHtml5StreamParser settings things up so that OnDataAvailable could be sent to a html parser thread off the main thread; improving performance.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 10:05:56 +00:00
Jean-Yves Avenard 036b6e9e35 Bug 1607984 - P7. Fix compilation failure in non-unified mode. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D70004

--HG--
extra : moz-landing-system : lando
2020-04-15 10:06:38 +00:00
Jean-Yves Avenard fbbf9522c0 Bug 1607984 - P6. Fix test. r=MattN
Following the changes to DocumentChannel the test was failing.
With DC, a load may take a few event loops to start. This current test was only waiting for the load to start to the URL about:preferences#privacy-logins and would immediately tear down the window.
However, this URL redirects to about:preferences#privacy ; destroying the window midway could cause XML parsing error.

So now we wait for the page to fully load, and make sure we've been through both addresses.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:57:28 +00:00
Jean-Yves Avenard 69ca0e9e57 Bug 1607984 - P5. Add missing nsIIdentChannel interface. r=mattwoodrow
Regressiong from bug 1607987. This prevented from QueryInterface(Ci.nsIIdentChannel) in JS on the channel.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:57:28 +00:00