Closed Bug 1879195 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 44451 - [shared storage] Introduce WorkletOptions param

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox124 fixed)

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 44451 into mozilla-central (this bug is closed when the sync is complete).

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

Yao Xiao <yaoxia@chromium.org> wrote:

[shared storage] Introduce WorkletOptions param

Introduce WorkletOptions param for both addModule() and
createWorklet(). For the resource request, use the provided
credentials and use the SiteForCookies derived from the RFHI. This
aligns with the worklet standard [1], and aligns with the
implementation for other workers (e.g. for dedicated workers [2]).

Note that the new param for addModule() isn't gated by
kSharedStorageAPIM123. This is intentional: we have been deviating
from the worklet standard, so we consider this change as a bugfix.

[1] https://html.spec.whatwg.org/multipage/worklets.html#dom-worklet-addmodule
[2] https://source.chromium.org/chromium/chromium/src/+/main:content/browser/worker_host/dedicated_worker_host.cc?q=WorkerScriptFetcher::CreateAndStart

Bug: 1218540
Change-Id: I82bb7f7509e904f1d9e2ff26c9c8eb1b90ad5828
Reviewed-on: https://chromium-review.googlesource.com/5273828
WPT-Export-Revision: 00339bb45e0e038acf2495c95b9d29e0c4971733

CI Results

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

Total 6 tests and 1 subtests

Status Summary

Firefox

OK : 6
FAIL: 6

Safari

OK : 6
FAIL: 6

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1f497312893f [wpt PR 44451] - [shared storage] Introduce WorkletOptions param, a=testonly https://hg.mozilla.org/integration/autoland/rev/1fb307126ed6 [wpt PR 44451] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
You need to log in before you can comment on or make changes to this bug.