[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)
Tracking
()
| 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 transferA 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>
| Assignee | ||
Updated•5 days ago
|
| Assignee | ||
Comment 1•3 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=118570
| Assignee | ||
Comment 2•3 days ago
|
||
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
- /css/css-view-transitions/navigation/prerender-removed-during-navigation.html [wpt.fyi]:
SKIP - /css/css-view-transitions/navigation/transition-to-prerender.html [wpt.fyi]:
SKIP - /css/css-view-transitions/navigation/hide-before-reveal.html [wpt.fyi]
- View transitions: pagereveal event provides viewTransition:
FAIL
- View transitions: pagereveal event provides viewTransition:
- /css/css-view-transitions/navigation/mismatched-snapshot-containing-block-size-skips.html [wpt.fyi]:
TIMEOUT
*
View transitions: mismatched snapshot containing block size skips transition.
:TIMEOUT - /css/css-view-transitions/navigation/old_vt_promises_bfcache.html [wpt.fyi]
- VT object created on the old Document is skipped before persisting in BFCache:
FAIL[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],PASS[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]
- VT object created on the old Document is skipped before persisting in BFCache:
- /css/css-view-transitions/navigation/prerender-coop.https.html [wpt.fyi]:
ERROR - /css/css-view-transitions/navigation/skip-outbound-vt-before-reveal.html [wpt.fyi]
- when navigating away before revealing, never start a view transition:
FAIL[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-linux2404-64-debug,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug],PASS[Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-opt]
- when navigating away before revealing, never start a view transition:
- /css/css-view-transitions/navigation/two-phase/preview-finished-before-swap.tentative.https.html [wpt.fyi]
- View transitions: a preview transition runs until its end:
FAIL
- View transitions: a preview transition runs until its end:
- /css/css-view-transitions/navigation/two-phase/preview-navigation-query.tentative.https.html [wpt.fyi]
- View transitions: a preview transition runs until its end:
FAIL
- View transitions: a preview transition runs until its end:
- /css/css-view-transitions/navigation/two-phase/swap-continues-when-skipping-preview.tentative.https.html [wpt.fyi]
- View transitions: aborting a preview triggers pageswap:
FAIL
- View transitions: aborting a preview triggers pageswap:
- /css/css-view-transitions/navigation/chromium-paint-holding-timeout.html [wpt.fyi]:
SKIP
Tests Disabled in Gecko Infrastructure
Comment 4•1 day ago
|
||
| bugherder | ||
Description
•