Commit Graph

2563 Commits

Author SHA1 Message Date
Valentin Gosu
06c9b1569f 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
2019-10-22 08:02:16 +00:00
shindli
51f5890d78 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
75c9c2a97f 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
2019-10-21 16:56:00 +00:00
Nika Layzell
de49d5b942 Bug 1576714 - Part 6: Remove now-passing fail-if, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D48129
2019-10-15 16:19:20 +00:00
Nika Layzell
2653b16f9a Bug 1576714 - Part 3: Initiate subframe process switches from the parent, r=kmag
This flips the direction in which the BrowserBridge actor is generally created
such that it is generally created in the parent and sent down to a child
process.

This is done by making the decision about what kind of switch to perform in the
parent, and sending messages down to child processes async to orchestrate these
process changes.

Process launching is changed to use an async `MozPromise`-returning API in this
patch, though the actual process launching still occurs synchronously. A future
patch will enable performing async process launching through the
NewOrUsedBrowserProcess mechanism.

I know of at least a few timing issues which exist with the new logic,
especially around the state of the BrowsingContext during the process
transition. I decided to not try to fix all of these issues in this patch, as
many are complex and will require changing how we manage the lifecycle of
BrowsingContext substantially. I do, however, think that the new logic is more
reliable and has fewer timing issues than the previous logic.

Differential Revision: https://phabricator.services.mozilla.com/D47310
2019-10-15 16:19:16 +00:00
Paolo Amadini
2bc4dc2bf3 Bug 1532703 - Redirect "about:config" to the HTML version on all channels for browser builds. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D48960
2019-10-14 15:58:42 +00:00
Narcis Beleuzu
9cfec1a2c7 Bug 1430977 - Disable browser_625016.js on Win-debug. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D48669
2019-10-09 10:34:22 +00:00
Csoregi Natalia
107c11ccab Backed out 7 changesets (bug 1576714) for fission permafailures on test_bug590812.html. a=backout
Backed out changeset d0c49f00eb91 (bug 1576714)
Backed out changeset faecc9f35b49 (bug 1576714)
Backed out changeset 2e156655c31e (bug 1576714)
Backed out changeset eece722082c7 (bug 1576714)
Backed out changeset ebda40f96884 (bug 1576714)
Backed out changeset 7dce423417d8 (bug 1576714)
Backed out changeset 9a5072019168 (bug 1576714)
2019-10-05 00:08:33 +03:00
Nika Layzell
80ec4d6085 Bug 1576714 - Part 7: Remove now-passing fail-if, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D48129
2019-10-03 21:51:53 +00:00
Nika Layzell
59a927155f Bug 1576714 - Part 3: Initiate subframe process switches from the parent, r=kmag
This flips the direction in which the BrowserBridge actor is generally created
such that it is generally created in the parent and sent down to a child
process.

This is done by making the decision about what kind of switch to perform in the
parent, and sending messages down to child processes async to orchestrate these
process changes.

Process launching is changed to use an async `MozPromise`-returning API in this
patch, though the actual process launching still occurs synchronously. A future
patch will enable performing async process launching through the
NewOrUsedBrowserProcess mechanism.

I know of at least a few timing issues which exist with the new logic,
especially around the state of the BrowsingContext during the process
transition. I decided to not try to fix all of these issues in this patch, as
many are complex and will require changing how we manage the lifecycle of
BrowsingContext substantially. I do, however, think that the new logic is more
reliable and has fewer timing issues than the previous logic.

Differential Revision: https://phabricator.services.mozilla.com/D47310
2019-10-03 21:40:24 +00:00
Brindusan Cristian
f5f4823217 Backed out 6 changesets (bug 1576714) for build bustages at nsFrameLoaderOwner.cpp. CLOSED TREE
Backed out changeset 083967e704d2 (bug 1576714)
Backed out changeset b3467f1bdde7 (bug 1576714)
Backed out changeset 88e3b4b7fbaf (bug 1576714)
Backed out changeset b91221da32c7 (bug 1576714)
Backed out changeset 6996b7705f06 (bug 1576714)
Backed out changeset a303fc193f60 (bug 1576714)
2019-10-02 04:14:53 +03:00
Nika Layzell
eb7940e4be Bug 1576714 - Part 3: Initiate subframe process switches from the parent, r=kmag
This flips the direction in which the BrowserBridge actor is generally created
such that it is generally created in the parent and sent down to a child
process.

This is done by making the decision about what kind of switch to perform in the
parent, and sending messages down to child processes async to orchestrate these
process changes.

Process launching is changed to use an async `MozPromise`-returning API in this
patch, though the actual process launching still occurs synchronously. A future
patch will enable performing async process launching through the
NewOrUsedBrowserProcess mechanism.

I know of at least a few timing issues which exist with the new logic,
especially around the state of the BrowsingContext during the process
transition. I decided to not try to fix all of these issues in this patch, as
many are complex and will require changing how we manage the lifecycle of
BrowsingContext substantially. I do, however, think that the new logic is more
reliable and has fewer timing issues than the previous logic.

Differential Revision: https://phabricator.services.mozilla.com/D47310
2019-10-01 18:09:03 +00:00
Cosmin Sabou
7bce7b2903 Bug 1533895 - Disable browser_broadcast.js on other platforms. r=bc
Differential Revision: https://phabricator.services.mozilla.com/D47550
2019-09-29 15:02:34 +00:00
Anny Gakhokidze
9dd233aa38 Bug 1582531 - Update fission annotations for skipped tests that are now passing succesfully, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D47347
2019-09-27 14:25:10 +00:00
Christoph Kerschbaumer
6dec8a1a75 Bug 1499354: Add object-src 'none' to the CSP of all about: pages. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D46950
2019-09-26 16:22:41 +00:00
Jean-Yves Avenard
d1d300ad3b Bug 1575744 - P2. Add nsIProcessSwitchRequestor interface. r=mayhemer,nika
Will allow for SessionStore.jsm process switching to be used by other objects than nsHttpChannel.

Differential Revision: https://phabricator.services.mozilla.com/D46015
2019-09-20 04:09:46 +00:00
Bogdan Tara
2a3b759622 Backed out 8 changesets (bug 1575744) for HttpChannelParent related assertion failures
Backed out changeset af61675dd488 (bug 1575744)
Backed out changeset bf794b9373c8 (bug 1575744)
Backed out changeset 39ffb74d2e12 (bug 1575744)
Backed out changeset c1547b3df672 (bug 1575744)
Backed out changeset 382ee8672027 (bug 1575744)
Backed out changeset 5abb38484f11 (bug 1575744)
Backed out changeset d5244c1bbfe8 (bug 1575744)
Backed out changeset c74b81debf73 (bug 1575744)
2019-09-20 06:58:44 +03:00
Jean-Yves Avenard
e0ff6ec922 Bug 1575744 - P2. Add nsIProcessSwitchRequestor interface. r=mayhemer,nika
Will allow for SessionStore.jsm process switching to be used by other objects than nsHttpChannel.

Differential Revision: https://phabricator.services.mozilla.com/D46015
2019-09-18 23:49:51 +00:00
Valentin Gosu
14bf3738ac Bug 1513574 - Remove UAOverridesBootstrapper r=michal
Differential Revision: https://phabricator.services.mozilla.com/D14750
2019-09-16 15:21:18 +00:00
monikamaheshwari
edb30ffaec Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D45629
2019-09-14 09:39:26 +00:00
Hiroyuki Ikezoe
6a179d2016 Bug 1578973 - Don't use autofocus in data URL since the data URL is treated as cross-origin thus autofocus doesn't work there. r=mikedeboer
We also use SpecialPowers.spawn to run the script to focus to the input element
so that it will work in fission world.

Differential Revision: https://phabricator.services.mozilla.com/D44949
2019-09-12 21:37:46 +00:00
Alphan Chen
563e577877 Bug 1549975 - Implement SessionStorageListener for contentSessionStore in C++ r=peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D36493
2019-08-27 14:47:27 +00:00
Alex Vincent
0a4e7a7185 Bug 1508169, Remove performAction* from nsITreeView.idl in mozilla-central. r=peterv, johannh
performAction, performActionOnRow and performActionOnCell are methods of the
nsITreeView interface that are never called.  This is to remove these methods.
A comm-central patch will be along shortly.

Differential Revision: https://phabricator.services.mozilla.com/D39273
2019-08-24 00:49:55 +02:00
Thomas Nguyen
afd661198b Bug 1528697 - Add cenum referrerpolicy in ReferrerInfo.idl r=ckerschb,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D41955
2019-08-21 13:28:23 +00:00
Sylvestre Ledru
8cad86666c Bug 1575249 - Ride along: remove +x permissions on source files r=Ehsan
Depends on D42672

Differential Revision: https://phabricator.services.mozilla.com/D42673
2019-08-21 09:57:03 +00:00
harry
0218ec7ed9 Bug 1528593 - Rename UrlbarInput::value getter to untrimmedValue and textValue to value. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D42190
2019-08-19 19:15:47 +00:00
Ciure Andrei
c0802578d1 Backed out changeset 81156ff3f4fa (bug 1571656) for causing browser_PageActions.js and test_insertTree_fixupOrSkipInvalidEntries.js to perma fail CLOSED TREE 2019-08-19 13:00:44 +03:00
Moritz Birghan
ecdc572dbd Bug 1571656 - Use Assert.jsm numeric comparison functions in tests r=mixedpuppy,MattN
Differential Revision: https://phabricator.services.mozilla.com/D40614
2019-08-19 07:17:12 +00:00
Abdoulaye O. Ly
2943eea2bf Bug 1559244 - Step 2: Add support for crashing sub-frame. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D37780
2019-08-15 19:51:42 +00:00
Oana Pop Rus
cfafc2c7fc Backed out 3 changesets (bug 1559244) for browser chrome failure in browser_background_tab_crash.js on a CLOSED TREE
Backed out changeset 1ce7d9bbe7a1 (bug 1559244)
Backed out changeset dced8cea7b23 (bug 1559244)
Backed out changeset dabda4e90259 (bug 1559244)
2019-08-15 22:21:26 +03:00
Abdoulaye O. Ly
d0473c5187 Bug 1559244 - Step 2: Add support for crashing sub-frame. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D37780
2019-08-15 17:16:26 +00:00
Abdoulaye O. Ly
5ffba91d46 Bug 1370046 - Ensure preloaded browser has finished loading in browser/components/sessionstore/test/browser_background_tab_crash.js before crashing it. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D40451
2019-08-02 19:27:12 +00:00
dennisschagt
f658a72b91 Bug 1569420 - Use scheme parameter instead of hardcoded "http" r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D39608
2019-08-13 13:06:57 +00:00
Mike Conley
1391436de2 Bug 1563500 - Avoid accessing bogus reftest gBrowser in SessionStore.onMayChangeProcess. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D40322
2019-08-12 20:09:21 +00:00
Narcis Beleuzu
fd6b8d29d2 Bug 1533895 - Disable browser_broadcast.js on OS-X. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D41138
2019-08-08 09:46:10 +00:00
Kris Maglione
219317c524 Bug 1571502: Don't leak TabGroups which have never had windows joined to them. r=nika
Currently, TabGroups know to break their reference cycles only when the last
window leaves them. For TabGroups which have never had a window join (which
happens under Fission), this means they also never see a window leave, and
therefore never break their reference cycles, and leak.

This patch adds a check to break reference cycles if no windows have joined by
the time a BrowserChild they belong to is destroyed.

MANUAL PUSH: Lando fails to rebase.

Differential Revision: https://phabricator.services.mozilla.com/D40669
2019-08-02 18:19:53 -07:00
Alphan Chen
3a6ea69b47 Bug 1544371 - Implement FormDataListener for contentSessionStore in C++ r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D30078
2019-08-02 14:19:00 +00:00
Bogdan Tara
4a478de642 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-07-27 00:41:55 +03:00
Kris Maglione
545eb3d999 Bug 1568035: Part 4 - Update test expections for Fission. r=mccr8
Some failures crept in and out after my last sets of annotations landed. This
patch updates most of the annotations to deal with them.

MANUAL PUSH: Lando won't let me land.

Differential Revision: https://phabricator.services.mozilla.com/D39462
2019-07-24 13:06:57 -07:00
Edwin Gao
9f18919824 Bug 1555454 - re-enable certain mochitest-browser-chrome tests on macosx1014 that are not permafails r=jmaher
I was overzealous in disabling tests. Some of these aren't permafails and have bugs associated with them already, so it can run and fail on an intermittent basis.

Differential Revision: https://phabricator.services.mozilla.com/D39399
2019-07-26 18:55:19 +00:00
Kris Maglione
fdba7d1377 Bug 1568035: Part 1 - Skip tests which cause shutdown leaks under Fission. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D39459
2019-07-19 15:31:16 -07:00
Andreea Pavel
8480e23cca Backed out 3 changesets (bug 1559244) for causing bug 1370046
Backed out changeset de76712278a6 (bug 1559244)
Backed out changeset 467caef2ef9c (bug 1559244)
Backed out changeset 17ab0c52dca0 (bug 1559244)
2019-07-25 17:42:32 +03:00
Abdoulaye Oumar Ly
273a130a29 Bug 1481055 - Improve the consistency of params of tab multiselection functions in gBrowser. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D36356
2019-07-22 17:16:40 +00:00
Andreea Pavel
8e0ddb50ed Merge mozilla-inbound to mozilla-central. a=merge 2019-07-25 08:59:39 +03:00
dennisschagt
a314434db5 Bug 1556151 - SessionStore: Save and restore cookie.sameSite flag r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D38792
2019-07-24 20:02:38 +00:00
Abdoulaye O. Ly
a0f4d1165b Bug 1559244 - Step 2: Add support for crashing sub-frame. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D37780
2019-07-24 18:43:14 +00:00
Boris Zbarsky
5c7393e484 Bug 1568278. Remove various unnecessary QIs to nsIDOMWindow. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D39065
2019-07-24 01:26:07 +00:00
Edwin Gao
f78650f34c Bug 1555454 - disable permafailing tests on macosx1014, migrate mochitest-browser-chrome to macosx1014 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D38783
2019-07-23 18:30:26 +00:00
Kris Maglione
1b5a278b6a Bug 1566952: Part 2 - Update Fission failure annotations after skipping crashes. r=mccr8
When a test crashes, the harness skips all of the remaining tests in the
directory. That means that with crashes skipped, we now try to run a whole lot
more tests than we did before, and a lot of them fail under Fission.

This patch adds annotations to the new failures that show up after part 1.

Differential Revision: https://phabricator.services.mozilla.com/D38726
2019-07-19 12:30:10 -07:00
Bogdan Tara
7bb7cb8fa1 Backed out changeset ad5e0980c273 (bug 1555454) for central permafails on browser_devices_get_user_media.js a=backout 2019-07-22 07:45:40 +03:00