[wpt-sync] Sync PR 64029 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=328198
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64029 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64029
Details from upstream follow.
Anne van Kesteren <annevk@annevk.nl> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=328198
WebKit export from bug: Documents with a Document-<!---->Isolation-<!---->Policy are never restored from the back/<!---->forward cache
<pre>
Documents with a Document-Isolation-Policy are never restored from the back/forward cacheSince <a href="https://commits.webkit.org/324033@main">324033@main</a>, with site isolation, a document with a Document-Isolation-Policy is in a
cross-origin isolated process of a browsing context group that isn't. The back/forward cache kept
such a document as any other, but a back/forward navigation only went to the process of the cached
document if that process had the cross-origin mode of the navigation's group, and a process for
documents with a policy counts as cross-origin isolated. So the navigation went to another process
instead. The response's policy then moved it to the group's process for documents with a policy
from that site, which is the cached document's process, and that dropped the cached document and
loaded it again.A back/forward navigation now goes to the process of the cached document when that process's
cross-origin isolation fits the navigation's group, which
BrowsingContextGroup::canUseProcessForCrossOriginIsolation() decides. A group that isn't
cross-origin isolated can use a process for documents with a policy, and one that is can't. The
old checks allowed the latter, though such a group never has one. The same checks without site
isolation, and the asserts about which processes a group has, now use it too.Child frames in other processes already came back with their parent, whatever their policy. That
they come back before their parent, firing pageshow while the parent is still in the back/forward
cache, is a separate bug. So the new test asks them about themselves once their parent is back,
rather than having them report their pageshow event to their parent.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=328198">https://bugs.webkit.org/show_bug.cgi?id=328198</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/324262@main">https://commits.webkit.org/324262@main</a>
</pre>
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=110846
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 44 tests and 8 subtests
Status Summary
Firefox
OK : 2[GitHub] 40[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 : 6[GitHub] 155[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]
FAIL : 8[GitHub] 67[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]
Chrome
OK : 2
PASS : 14
Safari
OK : 2
PASS : 4
FAIL : 8
PRECONDITION_FAILED: 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/document-isolation-policy/reporting-cache-storage-corp.tentative.https.html [wpt.fyi]:
SKIP - /html/document-isolation-policy/reporting-subresource-corp.tentative.https.html [wpt.fyi]:
SKIP - /html/document-isolation-policy/service-worker-coep-credentialless-proxy.https.tentative.window.html [wpt.fyi]:
SKIP - /html/document-isolation-policy/service-worker-coep-none-proxy.https.tentative.window.html [wpt.fyi]:
SKIP - /html/document-isolation-policy/agent-cluster.tentative.https.html [wpt.fyi]
- A document without a policy and a same-origin frame with one cannot access each other:
FAIL - A document with a policy cannot access a same-origin frame without one:
FAIL - An about:blank frame created by a document with a policy inherits it and can be accessed:
FAIL - Navigating the initial about:blank document of a popup to a same-origin document with a policy does not reuse its Window:
FAIL - A document without a policy and a same-origin popup with one cannot access each other:
FAIL - A document with a policy is in an origin-keyed agent cluster:
FAIL - A document without a policy cannot run a javascript: URL in a same-origin frame with one:
FAIL - A navigate event in a same-origin frame without a policy does not expose a link of a document with one as its sourceElement:
FAIL - A fragment navigation during a reload of a same-origin frame with a policy does not move the reloaded document into another agent cluster:
FAIL - Posting a WebAssembly.Module to a same-origin frame with a policy fails:
FAIL - A frame with a policy that is cross origin with a cross-origin isolated top-level document is not in the agent cluster of same-origin documents without one:
FAIL - A popup with a policy keeps it when its response switches browsing context groups:
FAIL
- A document without a policy and a same-origin frame with one cannot access each other:
- /html/document-isolation-policy/back-forward-cache-frames.tentative.https.html [wpt.fyi]
- A document with a policy and a same-origin child frame without one are restored after a cross-site navigation:
FAIL(Chrome:PASS, Safari:FAIL) - A document with a policy and a cross-site child frame without one are restored after a cross-site navigation:
FAIL(Chrome:PASS, Safari:FAIL)
- A document with a policy and a same-origin child frame without one are restored after a cross-site navigation:
- /html/document-isolation-policy/back-forward-cache.tentative.https.html [wpt.fyi]
- A document with a policy is restored after a cross-site navigation:
FAIL(Chrome:PASS, Safari:FAIL) - A document with a policy is restored after a cross-site navigation to a document with a policy:
FAIL(Chrome:PASS, Safari:FAIL) - A document with a policy is restored after a same-origin navigation to a document without one:
FAIL(Chrome:PASS, Safari:FAIL) - A document with a policy is restored after a same-origin navigation to a document with a policy:
FAIL(Chrome:PASS, Safari:FAIL) - A document with a policy is restored after a same-site navigation to a document with a policy:
FAIL(Chrome:PASS, Safari:FAIL) - A document with a policy is restored after a same-origin navigation to a cross-origin isolated document with COOP and COEP:
FAIL(Chrome:PASS, Safari:FAIL)
- A document with a policy is restored after a cross-site navigation:
- /html/document-isolation-policy/blob-document-inherits-policy.tentative.https.html [wpt.fyi]
- A blob: document created by a document with a policy inherits it:
FAIL - A blob: document created by a sandboxed document with a policy inherits it:
FAIL
- A blob: document created by a document with a policy inherits it:
- /html/document-isolation-policy/credentialless-cache-storage-from-credentialless.https.tentative.window.html?dedicated_worker [wpt.fyi]
- [dedicated_worker] isolate-and-credentialless => isolate-and-require-corp:
FAIL
- [dedicated_worker] isolate-and-credentialless => isolate-and-require-corp:
- /html/document-isolation-policy/credentialless-cache-storage-from-credentialless.https.tentative.window.html?document [wpt.fyi]
- [document] isolate-and-credentialless => isolate-and-require-corp:
FAIL
- [document] isolate-and-credentialless => isolate-and-require-corp:
- /html/document-isolation-policy/credentialless-cache-storage-from-credentialless.https.tentative.window.html?service_worker [wpt.fyi]
- [service_worker] isolate-and-credentialless => isolate-and-require-corp:
FAIL
- [service_worker] isolate-and-credentialless => isolate-and-require-corp:
- /html/document-isolation-policy/credentialless-cache-storage-from-credentialless.https.tentative.window.html?shared_worker [wpt.fyi]
- [shared_worker] isolate-and-credentialless => isolate-and-require-corp:
FAIL
- [shared_worker] isolate-and-credentialless => isolate-and-require-corp:
- /html/document-isolation-policy/credentialless-cache-storage-from-none.https.tentative.window.html?document [wpt.fyi]
- [document] none => isolate-and-credentialless:
FAIL - [document] none => isolate-and-require-corp:
FAIL - [document] none => isolate-and-require-corp (omit):
FAIL
- [document] none => isolate-and-credentialless:
- /html/document-isolation-policy/credentialless-cache-storage-from-none.https.tentative.window.html?shared_worker [wpt.fyi]
- [shared_worker] none => isolate-and-credentialless:
FAIL - [shared_worker] none => isolate-and-require-corp:
FAIL - [shared_worker] none => isolate-and-require-corp (omit):
FAIL
- [shared_worker] none => isolate-and-credentialless:
- /html/document-isolation-policy/credentialless-cache-storage-from-none.https.tentative.window.html?service_worker [wpt.fyi]
- [service_worker] none => isolate-and-credentialless:
FAIL - [service_worker] none => isolate-and-require-corp:
FAIL - [service_worker] none => isolate-and-require-corp (omit):
FAIL
- [service_worker] none => isolate-and-credentialless:
- /html/document-isolation-policy/credentialless-cache-storage-from-none.https.tentative.window.html?dedicated_worker [wpt.fyi]
- [dedicated_worker] none => isolate-and-credentialless:
FAIL - [dedicated_worker] none => isolate-and-require-corp:
FAIL - [dedicated_worker] none => isolate-and-require-corp (omit):
FAIL
- [dedicated_worker] none => isolate-and-credentialless:
- /html/document-isolation-policy/credentialless-cache.tentative.window.html [wpt.fyi]
- The HTTP cache must not be used:
FAIL
- The HTTP cache must not be used:
- /html/document-isolation-policy/credentialless-cross-origin-isolated.tentative.window.html [wpt.fyi]
- Main crossOriginIsolated case::
FAIL - Report-only + enforced::
FAIL
- Main crossOriginIsolated case::
- /html/document-isolation-policy/credentialless-dedicated-worker.https.tentative.window.html [wpt.fyi]
- fetch cross-origin + credentialless worker:
FAIL
- fetch cross-origin + credentialless worker:
- /html/document-isolation-policy/credentialless-fetch.https.tentative.window.html [wpt.fyi]
- fetch cross-origin + no-cors + credentials:include:
FAIL
- fetch cross-origin + no-cors + credentials:include:
- /html/document-isolation-policy/credentialless-link.https.tentative.window.html [wpt.fyi]
- link cross-origin + undefined:
FAIL
- link cross-origin + undefined:
- /html/document-isolation-policy/credentialless-redirect.tentative.window.html [wpt.fyi]
- same-origin -> cross-origin:
FAIL - cross-origin -> same-origin:
FAIL - cross-origin -> cross-origin:
FAIL
- same-origin -> cross-origin:
- /html/document-isolation-policy/credentialless-script.https.tentative.window.html [wpt.fyi]
- script cross-origin + undefined:
FAIL
- script cross-origin + undefined:
- /html/document-isolation-policy/credentialless-service-worker.https.tentative.window.html [wpt.fyi]
- fetch cross-origin + credentialless worker:
FAIL
- fetch cross-origin + credentialless worker:
- /html/document-isolation-policy/credentialless-shared-worker.https.tentative.window.html?request_origin=cross_origin&worker_dip=credentialless&window_dip=none [wpt.fyi]
- credentialless-shared-worker:
FAIL
- credentialless-shared-worker:
- /html/document-isolation-policy/credentialless-shared-worker.https.tentative.window.html?request_origin=cross_origin&worker_dip=credentialless&window_dip=credentialless [wpt.fyi]
- credentialless-shared-worker:
FAIL
- credentialless-shared-worker:
- /html/document-isolation-policy/credentialless-video.https.tentative.window.html [wpt.fyi]
- video cross-origin + undefined:
FAIL
- video cross-origin + undefined:
- /html/document-isolation-policy/header-parsing.tentative.https.html [wpt.fyi]
- policy applied for ["isolate-and-require-corp"]:
FAIL - policy applied for [" isolate-and-require-corp "]:
FAIL - policy applied for ["\tisolate-and-require-corp\t"]:
FAIL - policy applied for [" \tisolate-and-require-corp"]:
FAIL - policy applied for ["isolate-and-require-corp\t "]:
FAIL - policy applied for ["isolate-and-require-corp; foo=bar"]:
FAIL - policy applied for ["isolate-and-require-corp;isolate-and-require-corp"]:
FAIL - policy applied for ["isolate-and-require-corp; report-to="endpoint""]:
FAIL
- policy applied for ["isolate-and-require-corp"]:
- /html/document-isolation-policy/isolate-and-require-corp-load-from-cache-storage.tentative.https.html [wpt.fyi]
- Fetch cross-origin no-cors cors-disabled corp-undefined from network and CacheStorage.:
FAIL - Fetch cross-origin no-cors cors-enabled corp-undefined from network and CacheStorage.:
FAIL
- Fetch cross-origin no-cors cors-disabled corp-undefined from network and CacheStorage.:
- /html/document-isolation-policy/isolate-and-require-corp.tentative.https.html [wpt.fyi]
- "isolate-and-require-corp" top-level: fetch() to cross-origin response without CORP should fail:
FAIL
- "isolate-and-require-corp" top-level: fetch() to cross-origin response without CORP should fail:
- /html/document-isolation-policy/shared-workers.tentative.https.html [wpt.fyi]
- "isolate-and-require-corp" (derived from response):
FAIL - isolate-and-require-corp (derived from blob URL creator):
FAIL - "isolate-and-require-corp" (derived from owner set due to use of local scheme - blob URL):
FAIL - "isolate-and-require-corp" (derived from owner set due to use of local scheme - data URL):
FAIL
- "isolate-and-require-corp" (derived from response):
Tests Disabled in Gecko Infrastructure
- /html/document-isolation-policy/reporting-cache-storage-corp.tentative.https.html [wpt.fyi]:
SKIP - /html/document-isolation-policy/reporting-subresource-corp.tentative.https.html [wpt.fyi]:
SKIP - /html/document-isolation-policy/service-worker-coep-credentialless-proxy.https.tentative.window.html [wpt.fyi]:
SKIP - /html/document-isolation-policy/service-worker-coep-none-proxy.https.tentative.window.html [wpt.fyi]:
SKIP
Comment 4•24 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/bbbf6e6d2944
https://hg.mozilla.org/mozilla-central/rev/40a52bd313a3
Description
•