Closed Bug 2085402 Opened 1 month ago Closed 24 days ago

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

Categories

(Core :: DOM: Core & HTML, 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 63983 into mozilla-central (this bug is closed when the sync is complete).

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

Anne van Kesteren <annevk@annevk.nl> wrote:

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

WebKit export from bug: Serializing a SharedArrayBuffer only requires a cross-<!---->origin isolated process

<pre>
Serializing a SharedArrayBuffer only requires a cross-origin isolated process

HTML only lets cross-origin isolated contexts serialize a SharedArrayBuffer.
SerializedScriptValue also allows it whenever
JSC::Options::useSharedArrayBuffer() is set, as it is in cross-origin isolated
processes to expose the constructor. So contexts in those processes that aren't
cross-origin isolated could serialize one too, such as a cross-origin frame
without allow="cross-origin-isolated", or a frame with a
Document-Isolation-Policy that may not use that feature.

Those processes no longer set the option. WebCore instead exposes the
constructor on each of their global objects through the new
JSGlobalObject::exposeSharedArrayBuffer(), as HTML exposes it throughout a
cross-origin isolated agent cluster. The option remains for tests.

On Cocoa platforms, setting the option had no effect in processes in Lockdown
Mode or without the JIT, such as those for Enhanced Security (because
JSC::Options::initialize() only takes effect the first time). The new
allowSharedArrayBuffer option keeps the constructor out of them.

As in HTML, a worklet now has its document's cross-origin isolated capability,
so an AudioWorklet can still serialize a SharedArrayBuffer.
audioworklet-postmessage-sharedarraybuffer.https.html already passed, so its
Skip is removed.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=328319">https://bugs.webkit.org/show_bug.cgi?id=328319</a>
</pre>

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 67 tests and 16 subtests

Status Summary

Firefox

OK : 2[GitHub] 39[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] 59[Gecko-windows11-64-25h2-debug] 60[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-opt]
PASS: 1[GitHub] 149[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] 209[Gecko-windows11-64-25h2-debug] 211[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-opt]
FAIL: 4[GitHub] 62[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] 66[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: 2
FAIL: 3

Safari

OK : 2
PASS: 1
FAIL: 4

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: 24 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.