Skip to content

[shared storage] Validate that batchUpdate() cannot contain inner method locks#51720

Merged
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-6393777
Mar 31, 2025
Merged

[shared storage] Validate that batchUpdate() cannot contain inner method locks#51720
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-6393777

Conversation

@chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Mar 31, 2025

As part of the transactional batchUpdate() proposal (spec PR:[1]),
inner method locks are no longer permitted. This CL implements
validation in both the caller code and mojom traits.

Note that while unrecognized IDL dictionary fields are generally
allowed, strict validation is enforced for this deprecated
'withLock' field to prevent potential misuse.

[1] WICG/shared-storage#231

Bug: 404568020
Change-Id: I9dbc395445342a34a68f12b31fdc285a7576787f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6393777
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Commit-Queue: Yao Xiao <yaoxia@chromium.org>
Reviewed-by: Cammie Smith Barnes <cammie@chromium.org>
Reviewed-by: Dominic Farolino <dom@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1440291}

…hod locks

As part of the transactional batchUpdate() proposal (spec PR:[1]),
inner method locks are no longer permitted. This CL implements
validation in both the caller code and mojom traits.

Note that while unrecognized IDL dictionary fields are generally
allowed, strict validation is enforced for this deprecated
'withLock' field to prevent potential misuse.

[1] WICG/shared-storage#231

Bug: 404568020
Change-Id: I9dbc395445342a34a68f12b31fdc285a7576787f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6393777
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Commit-Queue: Yao Xiao <yaoxia@chromium.org>
Reviewed-by: Cammie Smith Barnes <cammie@chromium.org>
Reviewed-by: Dominic Farolino <dom@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1440291}
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 86858ee into master Mar 31, 2025
15 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-6393777 branch March 31, 2025 15:51
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