Closed Bug 2095285 Opened 11 days ago Closed 9 days ago

[wpt-sync] Sync PR 64991 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=330911

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
163 Branch
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 origin

The 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>

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

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

Status: NEW → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.