github web-platform-tests/wpt merge_pr_48708

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
10 months ago

[shared storage] Add Web Locks to the worklet

Explainer: WICG/shared-storage#199

Key points:

  • SharedStorageWorkletNavigator is a new interface that only
    supports locks. Implementation-wise, we inherit NavigatorBase
    so it's compatible with the LockManager implementation. Some
    methods are obviously unreachable (e.g. GetAcceptLanguages()).
  • Add the member LockManager<OriginLockGroupId> lock_manager_; to
    SharedStorageWorkletHostManager: The locks have a shared storage
    specific scope (separate from the Window/Worker locks), and are
    further partitioned by shared storage origin.

Bug: 373899210
Change-Id: I9908962949088356c2a61c1556183ccd5772985f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5937903
Reviewed-by: Ayu Ishii ayui@chromium.org
Reviewed-by: Xianzhu Wang wangxianzhu@chromium.org
Reviewed-by: Ken Buchanan kenrb@chromium.org
Commit-Queue: Yao Xiao yaoxia@chromium.org
Cr-Commit-Position: refs/heads/main@{#1370865}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.