Closed Bug 2076766 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63102 - Fix and extend cross-origin WebAssembly.Module sharing tests

Categories

(Core :: JavaScript: WebAssembly, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
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.

Component: web-platform-tests → JavaScript: WebAssembly
Product: Testing → Core

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

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

GitHub PR Head
GitHub PR Base

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