Support transactional batchUpdate() and disallow batch inner locks
- Category
- Miscellaneous
- Type
- New or changed feature
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
Summary
The `sharedStorage.batchUpdate(methods)` API (introduced in https://chromestatus.com/feature/5133950203461632) will now enforce atomicity. This involves treating the entire `batchUpdate()` as a single transaction, rather than executing methods independently. To mitigate deadlock risks associated with granular locking, individual method locks within `batchUpdate()` will be disallowed. Note that the lock for the `batchUpdate()` method itself (if specified) will remain valid.
Standards & signals
- Specification: https://wicg.github.io/shared-storage/#batch-update
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=support-transactional-batchupdate-and-disallow-batch-inner-locks
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Support%20transactional%20batchUpdate()%20and%20disallow%20batch%20inner%20locks
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Support%20transactional%20batchUpdate()%20and%20disallow%20batch%20inner%20locks
- Baseline status: https://webstatus.dev/?q=Support%20transactional%20batchUpdate()%20and%20disallow%20batch%20inner%20locks