[wpt-sync] Sync PR 34941 - Policy container inheritance for service workers
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox106 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream error])
Sync web-platform-tests PR 34941 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/34941
Details from upstream follow.
Jonathan Hao <phao@chromium.org> wrote:
Policy container inheritance for service workers
Project: https://docs.google.com/document/d/1mAuxWRLcmhghtCoapc30nLo0H12XTMZUJWqw079XOR8/edit?hl=en&forcehl=1
This is the part about service worker.
Attach a PolicyContainerHost to ServiceWorkerVersion. This PolicyContainerHost is obtained:
- for local schemes by cloning the creator’s PolicyContainerHost (the creator is the RenderFrameHost identified by requesting_frame_id_)
- for network schemes by parsing the policies from the response headers inside ServiceWorkerNewScriptLoader::OnReceiveResponse
The policy container is then passed down to renderer and set as the execution context's policy container.
This CL fixes external/wpt/html/cross-origin-embedder-policy/reflection-credentialless.tentative.https.any.serviceworker.html and external/wpt/html/cross-origin-embedder-policy/reflection-require-corp.tentative.https.any.serviceworker.html because the passed down policy container contains the correct COEP.
Follow-ups: merge CSPs into our policy container.
Bug: 1177199
Change-Id: Ie90c02b8dd3e295c5456e7e2ff03685339277d6a
Reviewed-on: https://chromium-review.googlesource.com/3766681
WPT-Export-Revision: b26412879c4f210848e5bec0c820eecd23dca2cf
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 18 tests and 1 subtests
Status Summary
Firefox
OK
: 12
FAIL
: 12
TIMEOUT
: 3
ERROR
: 3
Chrome
OK
: 18
FAIL
: 18
Safari
OK
: 18
FAIL
: 18
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /html/cross-origin-embedder-policy/reflection-credentialless.tentative.https.any.serviceworker-module.html [wpt.fyi]:
ERROR
- /html/cross-origin-embedder-policy/reflection-credentialless.tentative.https.any.sharedworker-module.html [wpt.fyi]:
TIMEOUT
- /html/cross-origin-embedder-policy/reflection-require-corp.tentative.https.any.sharedworker-module.html [wpt.fyi]:
TIMEOUT
- /html/cross-origin-embedder-policy/reflection-require-corp.tentative.https.any.serviceworker-module.html [wpt.fyi]:
ERROR
- /html/cross-origin-embedder-policy/reflection-unsafe-none.tentative.https.any.sharedworker-module.html [wpt.fyi]:
TIMEOUT
- /html/cross-origin-embedder-policy/reflection-unsafe-none.tentative.https.any.serviceworker-module.html [wpt.fyi]:
ERROR
New Tests That Don't Pass
- /html/cross-origin-embedder-policy/reflection-credentialless.tentative.https.any.serviceworker-module.html [wpt.fyi]:
ERROR
(Chrome:OK
, Safari:OK
) - /html/cross-origin-embedder-policy/reflection-credentialless.tentative.https.any.worker.html [wpt.fyi]
- reflection-credentialless:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- reflection-credentialless:
- /html/cross-origin-embedder-policy/reflection-credentialless.tentative.https.any.html [wpt.fyi]
- reflection-credentialless:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- reflection-credentialless:
- /html/cross-origin-embedder-policy/reflection-credentialless.tentative.https.any.serviceworker.html [wpt.fyi]
- reflection-credentialless:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- reflection-credentialless:
- /html/cross-origin-embedder-policy/reflection-credentialless.tentative.https.any.sharedworker.html [wpt.fyi]
- reflection-credentialless:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- reflection-credentialless:
- /html/cross-origin-embedder-policy/reflection-credentialless.tentative.https.any.sharedworker-module.html [wpt.fyi]:
TIMEOUT
(Chrome:OK
, Safari:OK
) - /html/cross-origin-embedder-policy/reflection-require-corp.tentative.https.any.html [wpt.fyi]
- reflection-require-corp:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- reflection-require-corp:
- /html/cross-origin-embedder-policy/reflection-require-corp.tentative.https.any.sharedworker-module.html [wpt.fyi]:
TIMEOUT
(Chrome:OK
, Safari:OK
) - /html/cross-origin-embedder-policy/reflection-require-corp.tentative.https.any.serviceworker.html [wpt.fyi]
- reflection-require-corp:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- reflection-require-corp:
- /html/cross-origin-embedder-policy/reflection-require-corp.tentative.https.any.sharedworker.html [wpt.fyi]
- reflection-require-corp:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- reflection-require-corp:
- /html/cross-origin-embedder-policy/reflection-require-corp.tentative.https.any.serviceworker-module.html [wpt.fyi]:
ERROR
(Chrome:OK
, Safari:OK
) - /html/cross-origin-embedder-policy/reflection-require-corp.tentative.https.any.worker.html [wpt.fyi]
- reflection-require-corp:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- reflection-require-corp:
- /html/cross-origin-embedder-policy/reflection-unsafe-none.tentative.https.any.sharedworker-module.html [wpt.fyi]:
TIMEOUT
(Chrome:OK
, Safari:OK
) - /html/cross-origin-embedder-policy/reflection-unsafe-none.tentative.https.any.sharedworker.html [wpt.fyi]
- reflection-unsafe-none:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- reflection-unsafe-none:
- /html/cross-origin-embedder-policy/reflection-unsafe-none.tentative.https.any.html [wpt.fyi]
- reflection-unsafe-none:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- reflection-unsafe-none:
- /html/cross-origin-embedder-policy/reflection-unsafe-none.tentative.https.any.serviceworker.html [wpt.fyi]
- reflection-unsafe-none:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- reflection-unsafe-none:
- /html/cross-origin-embedder-policy/reflection-unsafe-none.tentative.https.any.worker.html [wpt.fyi]
- reflection-unsafe-none:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- reflection-unsafe-none:
- /html/cross-origin-embedder-policy/reflection-unsafe-none.tentative.https.any.serviceworker-module.html [wpt.fyi]:
ERROR
(Chrome:OK
, Safari:OK
)
Comment 4•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/971cb511fb8e
https://hg.mozilla.org/mozilla-central/rev/c43d669403d0
Description
•