[wpt-sync] Sync PR 64991 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=330911
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64991 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64991
Details from upstream follow.
Anne van Kesteren <annevk@annevk.nl> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=330911
WebKit export from bug: The UI process ignores CSP sandboxing when it determines an origin
<pre>
The UI process ignores CSP sandboxing when it determines an originThe UI process now parses the sandbox flags of a navigation response's CSP, as
it does its Origin-Agent-Cluster and Document-Isolation-Policy headers.
Together with the frame's sandbox flags, they decide the origin the UI process
assigns an agent cluster for and the origin it records at commit.So a sandboxed document no longer decides the Origin-Agent-Cluster keying of
its URL's origin, and under site isolation other processes see a CSP-sandboxed
frame's origin as opaque. The injected bundle can no longer skip the response
decision for a sandboxed document.WebFrameProxy::updateDocumentSecurityOrigin() now uses
SecurityPolicy::determineOrigin(), as Document::initSecurityContext() does. In
the UI process each opaque document thereby gets its own opaque origin rather
than a shared one, so user activation propagation and text extraction no longer
treat unrelated sandboxed frames as same origin.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=330911">https://bugs.webkit.org/show_bug.cgi?id=330911</a>
</pre>
| Assignee | ||
Updated•11 days ago
|
| Assignee | ||
Comment 1•11 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=123015
| Assignee | ||
Comment 2•10 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 3 tests and 3 subtests
Status Summary
Firefox
OK : 3
PASS: 3
FAIL: 4
Chrome
OK : 3
PASS: 3
FAIL: 4
Safari
OK : 3
PASS: 3
FAIL: 4
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/browsers/origin/origin-keyed-agent-clusters/csp-sandboxed-iframe-keying.sub.https.html [wpt.fyi]
- child2: originAgentCluster must equal false:
FAIL(Chrome:FAIL, Safari:FAIL) - Parent to child2: setting document.domain must give sync access:
FAIL(Chrome:FAIL, Safari:FAIL)
- child2: originAgentCluster must equal false:
- /html/browsers/origin/origin-keyed-agent-clusters/sandboxed-iframe-keying.sub.https.html [wpt.fyi]
- child2: originAgentCluster must equal false:
FAIL(Chrome:FAIL, Safari:FAIL) - Parent to child2: setting document.domain must give sync access:
FAIL(Chrome:FAIL, Safari:FAIL)
- child2: originAgentCluster must equal false:
Comment 4•9 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/7ee3e42bae2e
https://hg.mozilla.org/mozilla-central/rev/365522a30f57
Description
•