Closed Bug 2091612 Opened 5 days ago Closed 1 day ago

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

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 64507 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64507
Details from upstream follow.

Roberto Rodriguez <roberto_rodriguez2@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=314705

WebKit export from bug: CSP sandbox does not prevent cross-<!---->document view transition state transfer

<pre>
CSP sandbox does not prevent cross-document view transition state transfer

A navigation to a same-origin URL that responds with Content-Security-Policy: sandbox
(but without allow-same-origin) still receives the full inbound cross-document view
transition. The same-origin check runs before CSP headers are applied and is never
re-evaluated. The previous page's captured element names, geometry, and rendered content
get transfered to the sandboxed document.

Store the old document's SecurityOrigin in ViewTransitionParams at pageswap capture time.
Re-check same-origin in resolveInboundCrossDocumentViewTransition, which runs during
Document::reveal() after CSP headers have been applied and the new document's final origin
is established. If the origins no longer match, the transition is rejected and no state is
transferred.

This includes the lint fix from <a href="https://commits.webkit.org/325400@main.">https://commits.webkit.org/325400@main.</a>

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=314705">https://bugs.webkit.org/show_bug.cgi?id=314705</a>
WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=329720">https://bugs.webkit.org/show_bug.cgi?id=329720</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/314585@main">https://commits.webkit.org/314585@main</a>
</pre>

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 70 tests

Status Summary

Firefox

OK : 1[GitHub] 61[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, GitHub] 89[Gecko-windows11-32-25h2-debug] 90[Gecko-windows11-32-25h2-opt] 91[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview] 92[Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-windows11-64-25h2-debug] 93[Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-opt]
FAIL : 4[Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-opt] 5[Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug] 6[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview]
TIMEOUT: 2
ERROR : 1

Chrome

OK : 1
PASS : 1

Safari

OK : 1
PASS : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

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