Skip to content

Commit

Permalink
Bug 1939785 [wpt PR 49893] - [shared storage] Implement sharedStorage…
Browse files Browse the repository at this point in the history
….batchUpdate() for PA worklet, a=testonly

Automatic update from web-platform-tests
[shared storage] Implement sharedStorage.batchUpdate() for PA worklet

Add sharedStorage.batchUpdate() function. Parse arguments into
the 'methods' sequence and a 'with_lock' optional flag, and
propagate the result to the browser process to invoke the
`SharedStorageLockManager::SharedStorageBatchUpdate()` API.

This allows developers to perform multiple Shared Storage operations atomically within a single lock, as part of the Web
Lock integration proposal:
- WICG/shared-storage#199
- WICG/shared-storage#205

Fuchsia-Binary-Size: Size increase is unavoidable.
Bug: 373899210
Change-Id: Ic6e9f794d78523ec9f6b87f37fb5e91f17635c58
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6072850
Commit-Queue: Yao Xiao <yaoxiachromium.org>
Reviewed-by: Maks Orlovich <morlovichchromium.org>
Reviewed-by: Cammie Smith Barnes <cammiechromium.org>
Reviewed-by: Giovanni Ortuno Urquidi <ortunochromium.org>
Cr-Commit-Position: refs/heads/main{#1401673}

--

wpt-commits: 078605da614507d4428c3cc92040ad750959018f
wpt-pr: 49893

UltraBlame original commit: 6c9bb3d400ca57aa2228bc148ec78a317433e0bc
  • Loading branch information
marco-c committed Jan 16, 2025
1 parent 2220216 commit 48958c7
Showing 1 changed file with 779 additions and 0 deletions.
Loading

0 comments on commit 48958c7

Please sign in to comment.