这是indexloc提供的服务,不要输入任何密码
Skip to content

[shared storage] Add Web Locks to the worklet #48708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Oct 18, 2024

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}

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}
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit f045090 into master Oct 18, 2024
18 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-5937903 branch October 18, 2024 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants