Enable COOP+COEP (aka "resab") on Android
Categories
(GeckoView :: Sandboxing, enhancement, P1)
Tracking
(Fission Milestone:Future, firefox-esr91 wontfix, firefox95 wontfix, firefox96 wontfix, firefox97 fixed)
People
(Reporter: annevk, Assigned: owlish)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [geckoview:m85] [fission:android:m2][geckoview:m96])
Attachments
(4 files)
I file this mainly so we do not lose track of it. It's not part of shipping COOP+COEP initially. Dependencies will need to be fixed and then we can fiddle with these preferences and see what breaks and how many new intermittents we get:
browser.tabs.remote.useCORP
browser.tabs.remote.useCrossOriginOpenerPolicy
browser.tabs.remote.useCrossOriginEmbedderPolicy
dom.postMessage.sharedArrayBuffer.withCOOP_COEP
Note that javascript.options.shared_memory
is enabled on Android already and will eventually ship there following bug 1606624. (Ironically it won't give you access to shared memory however, as postMessage()
will throw until this is fixed.)
Updated•4 years ago
|
Comment hidden (offtopic) |
Comment hidden (offtopic) |
Comment hidden (offtopic) |
Comment hidden (offtopic) |
Comment hidden (offtopic) |
Comment hidden (offtopic) |
Comment 7•4 years ago
|
||
COOP and COEP are a prerequisite for Fission on Android.
Comment 8•4 years ago
|
||
Nominating for 85 sprint for the purposes of ascertaining what (if anything) needs work here.
Comment 9•4 years ago
|
||
Tracking this bug for Android Fission milestone M2 (pass tests with Fission enabled).
Comment 11•4 years ago
|
||
Some COOP/COEP tests are skipped or force-passed on Android:
https://searchfox.org/mozilla-central/source/testing/web-platform/meta/html/cross-origin-opener-policy
https://searchfox.org/mozilla-central/source/testing/web-platform/meta/html/cross-origin-embedder-policy
needinfo'ing Neha because she is investigating why these COOP/COEP tests were skipped/force-passed on Android.
Comment 12•4 years ago
|
||
Tom, you might know why some COOP/COEP tests were either disabled for Android or marked passing only-for-Android.
Reporter | ||
Comment 13•4 years ago
|
||
That's because Android was out of scope of the resab project, no? And until bug 1530770 is fixed I don't think we're able to do much, unless something else has changed?
Comment 14•4 years ago
|
||
Thanks Anne. Yes, Android was out of scope at the time of shipping resab. But seeing some of the tests only enabled for Android made me very curious...
aklotz and agi, after bug 1530770 is fixed, the Android team will have to try to enable the COOP and COEP WPTs for Android and fix any failures seen.
Updated•4 years ago
|
Comment 15•4 years ago
|
||
Bug 1530770 is fixed (it's just not riding the trains yet) so I guess we could try to do this in Nightly now.
Updated•4 years ago
|
Comment hidden (advocacy) |
Comment hidden (advocacy) |
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 18•3 years ago
|
||
Note to self that browser.tabs.remote.useCORP
is gone as of bug 1609078.
Comment 19•3 years ago
|
||
We're ready to enable this, pending the enabling of more e10s processes.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 21•3 years ago
•
|
||
Bumping this to 90 in favour of landing the Nightly-only variant in bug 1703968.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 22•3 years ago
|
||
What news here? This is an unfortunate bit of feature non-parity, and the Bergamot (in-browser translation) team ran into this issue during some testing yesterday, because they are using wasm with shared memory. This is a P2 bug but the only blocking (DOM) bug is unprioritized.
Comment 23•3 years ago
|
||
Adding on top of what Lars wrote, I faced this issue on Firefox for Android 91.1.0 for Bergamot project but not on Firefox for Android (Nightly) 93.0a1
Comment 24•3 years ago
|
||
Agi, Nika says she doesn't know of issues that should block the GV team from enabling COOP+COEP on Android to match desktop. It can be enabled on Android before Fission.
Comment 25•3 years ago
|
||
I need to dig through the backout logs/emails, from what I'm told there's something only enabled in late beta that breaks on android with COOP+COEP (keeping the NI so I remember to look into that)
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 26•3 years ago
•
|
||
So as far as I can tell, we have enabled COOP+COEP in Nightly builds (since v89), and it has been doing well. It looks like at this stage we can proceed to enabling this in Beta and Release builds.
I'll start with some try pushes, and if the tests are doing well there, will make a patch.
Assignee | ||
Comment 27•3 years ago
|
||
Note to myself: found in Fission meeting notes mention of some disabled wpt COOP/COEP tests. Check to see if they are still disabled
Assignee | ||
Comment 28•2 years ago
|
||
Assignee | ||
Comment 29•2 years ago
|
||
Depends on D132960
Assignee | ||
Comment 30•2 years ago
|
||
Depends on D132961
Assignee | ||
Comment 31•2 years ago
|
||
Depends on D132962
Comment 32•2 years ago
|
||
Pushed by istorozhko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c3111723c611 Part 1. Enable COOP+COEP prefs on GeckoView Beta and Release r=calu
Comment 33•2 years ago
|
||
Pushed by istorozhko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/90e053a1953b Part 2. Fix COOP and COEP wpt test expectations for Android Beta and Release r=calu https://hg.mozilla.org/integration/autoland/rev/32bc709ae6d7 Part 3. Fix worker and hr-time wpt test expectations for Android Beta and Release r=calu https://hg.mozilla.org/integration/autoland/rev/35533e37472a Part 4. Set GV's COOP+COEP processCount for Release and Beta r=geckoview-reviewers,calu
Comment 34•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c3111723c611
https://hg.mozilla.org/mozilla-central/rev/90e053a1953b
https://hg.mozilla.org/mozilla-central/rev/32bc709ae6d7
https://hg.mozilla.org/mozilla-central/rev/35533e37472a
Comment 35•2 years ago
|
||
owlish, do we want to uplift these COOP+COEP patches to Beta 96 or ride the trains with 97?
COOP+COEP is already enabled #ifdef NIGHTLY_BUILD, so IIUC these patches have no effect in Nightly. OTOH, I see we have at least one regression (bug 1744775) that needs to be resolved first before enabling COOP+COEP in Beta.
Assignee | ||
Comment 36•2 years ago
•
|
||
The feature has been in Nightly for a while, but I would still let it ride the trains to give us more opportunity to fix any possible intermittents rising from removing the #ifdef NIGHTLY_BUILD (including the one you mentioned).
Comment 37•2 years ago
|
||
SGTM. Setting status-firefox96=wontfix flag because we don't need to uplift to Beta 96.
Comment 38•2 years ago
|
||
Moving Android Fission bugs to the new GeckoView::Sandboxing component.
Updated•2 years ago
|
Description
•