[wpt-sync] Sync PR 63102 - Fix and extend cross-origin WebAssembly.Module sharing tests
Categories
(Core :: JavaScript: WebAssembly, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63102 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63102
Details from upstream follow.
Anne van Kesteren <annevk@annevk.nl> wrote:
Fix and extend cross-origin WebAssembly.Module sharing tests
Same-site documents share an agent cluster unless they are origin-keyed, and the WebAssembly Web API only rejects a WebAssembly.Module whose agent cluster differs from the target's. Documents in non-secure contexts, which most of these tests use, cannot be origin-keyed.
cross-origin-module-sharing-fails.html used OTHER_ORIGIN for its "different agent cluster" subtest, but that origin is same site. Use HTTP_NOTSAMESITE_ORIGIN instead. Its HTTPS_ORIGIN subtest claimed the same agent cluster, but the scheme makes that origin a different site, so describe it accurately. Also cover a sandboxed iframe, whose opaque origin is only same site with itself, and rename the test to window-cross-site-failure.html.
share-module-cross-origin-fails.sub.html expected sharing with a same-site cross-origin document to fail, contradicting
window-similar-but-cross-origin-success.sub.html. That restriction is proposed in https://github.com/WebAssembly/spec/issues/1303 but is not part of the WebAssembly Web API. Replace it with window-same-site-success.sub.html, which expects sharing with iframes on another host and on another port to succeed, without using document.domain.Add window-cross-origin-isolated.https.sub.html. Cross-origin isolation keys agent clusters by origin, so sharing with a same-site cross-origin iframe fails there while sharing with a same-origin iframe succeeds.
| 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=103165
| Assignee | ||
Comment 2•1 month ago
|
||
Try push failed to land: Lando job 103165 for the try push is FAILED:
Aborting, could not apply patch buffer for None.
hg error in cmd: hg import -s 95 --no-commit /tmp/tmpfn3d8ro8diff: applying /tmp/tmpfn3d8ro8diff
abort: /tmp/tmpfn3d8ro8diff: no diffs found
| Assignee | ||
Comment 3•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=103373
| Assignee | ||
Comment 4•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=103388
| Assignee | ||
Comment 5•1 month ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 3 tests and 2 subtests
Status Summary
Firefox
OK : 3
PASS : 8
Chrome
OK : 2
PASS : 6
TIMEOUT: 2
NOTRUN : 1
Safari
OK : 3
PASS : 8
Links
https://hg.mozilla.org/mozilla-central/rev/e0062498e171
https://hg.mozilla.org/mozilla-central/rev/0cfe54f0b514
Description
•