Commit graph

107 commits

Author SHA1 Message Date
Paul Bone
4e341bce84 Bug 1603007 - Remove allowLinkedWebInFileUriProcess r=nika
This patch removes the allowLinkedWebInFileUriProcess pref, but one
code-path is kept because when DocumentChannel is disabled a HTTP POST load
from a file:// page would loose the postData, so that case keeps the FILE
remote type.

Differential Revision: https://phabricator.services.mozilla.com/D69923
2020-04-23 17:15:09 +00:00
Ed Lee
acb960676c Bug 1620556 - Automatic code fixes for Prettier 1.19.1 upgrade. r=Standard8,remote-protocol-reviewers,marionette-reviewers,webcompat-reviewers,perftest-reviewers,sparky,whimboo,denschub
Differential Revision: https://phabricator.services.mozilla.com/D66128

--HG--
extra : moz-landing-system : lando
2020-03-13 23:38:52 +00:00
Mark Banner
2c4e35b0a6 Bug 1620218 - Automatic code fixes for Prettier 1.18.2 upgrade. r=mossop,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65509

--HG--
extra : moz-landing-system : lando
2020-03-08 21:45:16 +00:00
Kris Maglione
9fe389f830 Bug 1609443: Part 2 - Fix most dodgy uses of fission.autostart pref. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D64435

--HG--
extra : moz-landing-system : lando
2020-02-26 19:43:32 +00:00
Kris Maglione
f3354d4788 Bug 1617254: Rename BrowsingContext.getChildren() to .children. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63699

--HG--
extra : moz-landing-system : lando
2020-02-25 22:33:53 +00:00
Arthur Iakab
73b6d9dca6 Backed out changeset 5616425b54da (bug 1617254)for casuing multiple browser-chrome failures.
CLOSED TREE
2020-02-26 00:09:34 +02:00
Kris Maglione
c65ef42473 Bug 1617254: Rename BrowsingContext.getChildren() to .children. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63699

--HG--
extra : moz-landing-system : lando
2020-02-25 21:03:58 +00:00
Noemi Erli
6b488deed0 Backed out changeset 034e2e79ecfa (bug 1617254) for causing build bustages CLOSED TREE 2020-02-25 21:59:14 +02:00
Kris Maglione
e4c4115afb Bug 1617254: Rename BrowsingContext.getChildren() to .children. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63699

--HG--
extra : moz-landing-system : lando
2020-02-25 19:39:25 +00:00
Valentin Gosu
1c3fa01428 Bug 1607460 - Fix browser_httpCrossOriginOpenerPolicy.js r=michal
Depends on D60481

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

--HG--
extra : moz-landing-system : lando
2020-02-17 10:15:31 +00:00
Paul Bone
983fef7556 Bug 1603006 - Ignore allowLinkedWebInFile when documentChannel is enabled r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D56832

--HG--
extra : moz-landing-system : lando
2020-02-12 23:56:01 +00:00
Kris Maglione
9853440599 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:24 +00:00
Kris Maglione
94e3b0bd8d Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

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

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:16 +00:00
Emma Malysz
be0238569b Bug 1601090, rename .xul files to .xhtml in toolkit/mozapps r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D55837

--HG--
rename : toolkit/mozapps/downloads/content/unknownContentType.xul => toolkit/mozapps/downloads/content/unknownContentType.xhtml
rename : toolkit/mozapps/extensions/content/blocklist.xul => toolkit/mozapps/extensions/content/blocklist.xhtml
rename : toolkit/mozapps/extensions/content/extensions.xul => toolkit/mozapps/extensions/content/extensions.xhtml
rename : toolkit/mozapps/handling/content/dialog.xul => toolkit/mozapps/handling/content/dialog.xhtml
rename : toolkit/mozapps/update/content/updateElevation.xul => toolkit/mozapps/update/content/updateElevation.xhtml
extra : moz-landing-system : lando
2019-12-12 16:30:59 +00:00
Paul Bone
d8a910b09e Bug 1592894 - pt 3. Remove useHttpResponseProcessSelection from SessionStore.jsm r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D53762

--HG--
extra : moz-landing-system : lando
2019-12-11 02:31:04 +00:00
Paul Bone
6a1e5a7f46 Bug 1592894 - pt 2. Don't need to skip this test for fission anymore r=mattwoodrow
I don't know why, but this test is passing so I'll enable it.

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

--HG--
extra : moz-landing-system : lando
2019-12-11 02:30:31 +00:00
Paul Bone
939cdaba37 Bug 1592894 - pt 1. Rename httpResponseProcessSelection test r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D55793

--HG--
rename : toolkit/components/remotebrowserutils/tests/browser/browser_httpResponseProcessSelection.js => toolkit/components/remotebrowserutils/tests/browser/browser_documentChannel.js
extra : moz-landing-system : lando
2019-12-11 02:30:08 +00:00
shindli
91924fedc7 Backed out 9 changesets (bug 1596918) for causing mochitest permafailures in toolkit/content/tests/chrome/test_findbar_events.xhtml CLOSED TREE
Backed out changeset 45a1c42118f2 (bug 1596918)
Backed out changeset db09910ffa56 (bug 1596918)
Backed out changeset 5c9d9f141c10 (bug 1596918)
Backed out changeset 6a135670d603 (bug 1596918)
Backed out changeset 3a0184e0df72 (bug 1596918)
Backed out changeset 2f0036486823 (bug 1596918)
Backed out changeset a770c6d08d52 (bug 1596918)
Backed out changeset ef062eb7a6ee (bug 1596918)
Backed out changeset a6ea596e98db (bug 1596918)
2019-12-11 03:09:26 +02:00
Kris Maglione
3ca78ce8e3 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:21 +00:00
Kris Maglione
16a9b29848 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

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

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:13 +00:00
Noemi Erli
82d41a33b2 Backed out 9 changesets (bug 1596918) for causing multiple browser-chrome failures
Backed out changeset 415007efd8c9 (bug 1596918)
Backed out changeset 011eb5ce927b (bug 1596918)
Backed out changeset e5fd3ee22ea1 (bug 1596918)
Backed out changeset 0bca4de31d40 (bug 1596918)
Backed out changeset 11ec4393f23d (bug 1596918)
Backed out changeset c5404a7c286d (bug 1596918)
Backed out changeset 7e9304405a46 (bug 1596918)
Backed out changeset fa0f0aeabf99 (bug 1596918)
Backed out changeset de196b077000 (bug 1596918)
2019-12-07 22:26:43 +02:00
Kris Maglione
fa3556c3fc Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:34 +00:00
Kris Maglione
910eab35d2 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

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

--HG--
extra : moz-landing-system : lando
2019-12-07 19:11:58 +00:00
Daniel Varga
84a601a6d4 Backed out 17 changesets (bug 1596918) for multiple browser-chrome and dev-tools failures. On a CLOSED TREE
Backed out changeset ab87d2c1afae (bug 1596918)
Backed out changeset 775f3b06a687 (bug 1596918)
Backed out changeset 67cc63ef5d7f (bug 1596918)
Backed out changeset 7d290bcd2067 (bug 1596918)
Backed out changeset 048db9f4db7c (bug 1596918)
Backed out changeset 96a79d2ba614 (bug 1596918)
Backed out changeset be770d112dd8 (bug 1596918)
Backed out changeset 302c8ab8391c (bug 1596918)
Backed out changeset 44ef8f20732e (bug 1596918)
Backed out changeset 38c11ebfb8ff (bug 1596918)
Backed out changeset b586fc081374 (bug 1596918)
Backed out changeset 12283166716f (bug 1596918)
Backed out changeset 99b0421015d8 (bug 1596918)
Backed out changeset 97ec49dbbbf3 (bug 1596918)
Backed out changeset ec79478f58f1 (bug 1596918)
Backed out changeset c6d356833bb8 (bug 1596918)
Backed out changeset 5ef6026806c8 (bug 1596918)
2019-12-07 03:12:07 +02:00
Kris Maglione
b5238224ba Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-06 22:14:22 +00:00
Kris Maglione
20da940e14 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 22:14:14 +00:00
Noemi Erli
434c4a9abd Backed out 4 changesets (bug 1592894) for failing in browser_httpResponseProcessSelection.js
Backed out changeset 2e3a515756cc (bug 1592894)
Backed out changeset f431b1c95887 (bug 1592894)
Backed out changeset d9fcadf796da (bug 1592894)
Backed out changeset 79a9d3e1e255 (bug 1592894)
2019-12-03 04:09:56 +02:00
Paul Bone
58a552899c Bug 1592894 - pt 3. Remove useHTTPResponseProcessSelection from tests r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D53764

--HG--
extra : moz-landing-system : lando
2019-12-02 04:02:59 +00:00
Paul Bone
76ebf2a735 Bug 1599651 - Don't disable documentchannel in these tests r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D54852

--HG--
extra : moz-landing-system : lando
2019-11-27 01:52:15 +00:00
Valentin Gosu
164b071ee3 Bug 1541389 - Fix browser_httpCrossOriginOpenerPolicy.js to remove timeouts and not wait for SSTabRestored r=mattwoodrow
(Matt Woodrow (:mattwoodrow) in bug 1541389 comment #7)
> Nika did some work on top of DocumentChannel to make sure we delay
notifying the old docshell that it had been cancelled until we'd setup
the new one.

This patch removes the code that waits for the `SSTabRestored` event when a
process switch is expected.
It also removes the `setTimeout` in the test, and uses
`browser.frameLoader.remoteTab.osPid` instead of ContentTask.spawn to get the
PID of the content process.

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

--HG--
extra : moz-landing-system : lando
2019-11-26 23:01:39 +00:00
Paul Bone
a8ed0f485e Bug 1598601 - Enable DocumentChannel in the 2nd part of browser_httpToFileHistory.js r=jya
DocumentChannel is enabled by default in nightly, but not beta.  We need to
enable it explicitly in the 2nd part of this test.

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

--HG--
extra : moz-landing-system : lando
2019-11-26 10:30:53 +00:00
Paul Bone
d0d5093eb5 Bug 1594221 - Remove documentchannel pref from browser_httpToFileHistory.js r=jya
Differential Revision: https://phabricator.services.mozilla.com/D54077

--HG--
extra : moz-landing-system : lando
2019-11-22 03:57:42 +00:00
Kashav Madan
74f3c709f3 Bug 1596217 - Make toolkit/components/remotebrowserutils/tests/ Fission-compatible, r=kmag
This updates browser_RemoteWebNavigation.js to only do same-origin navigations,
and updates browser_httpResponseProcessSelection.js to skip test_disabled if
Fission is enabled.

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

--HG--
extra : moz-landing-system : lando
2019-11-14 19:59:37 +00:00
Junior Hsu
4c5a1fa1cb Bug 1595284 - enable document channel for response process selection, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D52569

--HG--
extra : moz-landing-system : lando
2019-11-11 20:26:39 +00:00
Junior Hsu
7d8477a003 Bug 1593439 - always use document channel to test coop for beta simulation, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D52388

--HG--
extra : moz-landing-system : lando
2019-11-09 10:52:44 +00:00
Valentin Gosu
982bdfbbbd Bug 1579992 - Load pages into new webCOOP+COEP process type r=nika
* This patch makes pages with the `OPENER_POLICY_SAME_ORIGIN_EMBEDDER_POLICY_REQUIRE_CORP` policy load into a special `webCOOP+COEP={pageOrigin}` remote type.
* Adds `E10SUtils.WEB_REMOTE_COOP_COEP_TYPE_PREFIX="webCOOP+COEP="`
* When a COOP process switch occurs and the target page doesn't have this policy, we pass a `preferredRemoteType="web"` into `E10SUtils.getRemoteTypeForPrincipal` ensuring that we correctly get a different `remoteType`
* E10SUtils.getRemoteTypeForPrincipal is changed such that `if preferredRemoteType.startsWith(WEB_REMOTE_COOP_COEP_TYPE_PREFIX)` we don't override it with `webIsolated={pageOrigin}`.
* `coop_header.sjs` is changed to also allow setting `Cross-Origin-Embedder-Policy` headers
* `browser_httpCrossOriginOpenerPolicy.js` is changed to test that pages are correctly opened in the correct remoteType process.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 08:02:16 +00:00
shindli
ebcb4e6fbf Backed out changeset 5686e9cc48b2 (bug 1579992) for causing bc failures in browser/components/aboutlogins/tests/browser/browser_dismissFooter.js CLOSED TREE 2019-10-21 21:09:24 +03:00
Valentin Gosu
74ec329cc9 Bug 1579992 - Load pages into new webCOOP+COEP process type r=nika
* This patch makes pages with the `OPENER_POLICY_SAME_ORIGIN_EMBEDDER_POLICY_REQUIRE_CORP` policy load into a special `webCOOP+COEP={pageOrigin}` remote type.
* Adds `E10SUtils.WEB_REMOTE_COOP_COEP_TYPE_PREFIX="webCOOP+COEP="`
* When a COOP process switch occurs and the target page doesn't have this policy, we pass a `preferredRemoteType="web"` into `E10SUtils.getRemoteTypeForPrincipal` ensuring that we correctly get a different `remoteType`
* E10SUtils.getRemoteTypeForPrincipal is changed such that `if preferredRemoteType.startsWith(WEB_REMOTE_COOP_COEP_TYPE_PREFIX)` we don't override it with `webIsolated={pageOrigin}`.
* `coop_header.sjs` is changed to also allow setting `Cross-Origin-Embedder-Policy` headers
* `browser_httpCrossOriginOpenerPolicy.js` is changed to test that pages are correctly opened in the correct remoteType process.

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

--HG--
extra : moz-landing-system : lando
2019-10-21 16:56:00 +00:00
Junior Hsu
73de20821d Bug 1523986 - P4 Use extension to redirect to different protocols r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D49537

--HG--
extra : moz-landing-system : lando
2019-10-17 14:30:36 +00:00
Junior Hsu
5e0946d52e Bug 1523986 - P3 test process switch trigger by web extension r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D49497

--HG--
extra : moz-landing-system : lando
2019-10-17 12:48:17 +00:00
Junior Hsu
71e03366fa Bug 1523986 - P1 test process switch between protocols r=nika
Test file:// and data:

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

--HG--
extra : moz-landing-system : lando
2019-10-15 17:37:41 +00:00
Kris Maglione
1be547aab5 Bug 1586119: Part 3 - Enable some tests which appear to work under Fission. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D48222

--HG--
extra : moz-landing-system : lando
2019-10-04 21:50:32 +00:00
Andrew McCreight
663c40c506 Bug 1579835, part 1b - Directly pass in remote type to E10SUtils.isWebRemoteType. r=mconley
Now that we only use a single field of the browser that gets passed in
to isWebRemoteType, I think it makes more sense to just pass in the
remote type directly.

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

--HG--
extra : moz-landing-system : lando
2019-09-26 22:16:28 +00:00
Andrew McCreight
741763a6d6 Bug 1579835, part 1 - Make E10SUtils.isWebRemoteType use a simpler prefix approach. r=mconley
Nika said that any `web'-prefixed remote type should be valid, so this
function can be simplified. For instance, webLargeAllocation should
return true.

This removes the need for ownerGlobal, so a few wrappers can be
removed.

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

--HG--
extra : moz-landing-system : lando
2019-09-25 22:40:30 +00:00
Mark Banner
9569721e58 Bug 1579420 - Fix remaining ESLint no-async-promise-executor issues in browser/ and toolkit/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D45010

--HG--
extra : moz-landing-system : lando
2019-09-16 17:26:58 +00:00
Kris Maglione
c9bc5f8a41 Bug 1542415: Part 4 - Always rebuild frameloaders on remoteness change in Fission windows. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D44738

--HG--
extra : moz-landing-system : lando
2019-09-09 12:28:09 +00:00
Thomas Nguyen
bbd6f51a56 Bug 1528697 - Add cenum referrerpolicy in ReferrerInfo.idl r=ckerschb,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D41955

--HG--
extra : moz-landing-system : lando
2019-08-21 13:28:23 +00:00
Andrew McCreight
b67d050045 Bug 1574543 - Add and use a Fission-compatible utility method to check if a remote type is for web content. r=mconley
Some tests check that the remote type is "web", but with Fission it
will instead start with "webIsolated=".

I fixed some of the errors in
browser_new_web_tab_in_file_process_pref.js and
browser_httpResponseProcessSelection.js, but there are other failures,
so they remain disabled.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 16:56:36 +00:00
Andrew McCreight
c749e75350 Bug 1574627 - Fix some "disbaled" typos. DONTBUILD r=njn
Differential Revision: https://phabricator.services.mozilla.com/D42376

--HG--
extra : moz-landing-system : lando
2019-08-16 23:23:05 +00:00
Junior Hsu
f1fe19ab20 Bug 1528607 - don't load about:blank with waitForStateStop for newTab r=nika
`BrowserTestUtils.withNewTab` with waitForStateStop doesn't work well without url, (i.e, about:blank)

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

--HG--
extra : moz-landing-system : lando
2019-07-29 23:06:01 +00:00