Skip to content

Commit

Permalink
Add shared-storage-locks (#2638)
Browse files Browse the repository at this point in the history
* `shared-storage`: add more keys

* Add `shared-storage-locks`
  • Loading branch information
ddbeck authored Feb 27, 2025
1 parent 63abdac commit e2dbe5d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
19 changes: 19 additions & 0 deletions features/shared-storage-locks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Shared storage locks
description: The `withLock` option to `set()`, `append()`, `delete()`, `clear()`, and `batchUpdate()` methods of the `sharedStorage` API prevents duplicate reporting from cross-site race conditions.
spec: https://wicg.github.io/shared-storage/#web-locks-integration
compat_features:
- api.SharedStorage.batchUpdate
- api.SharedStorageAppendMethod
- api.SharedStorageAppendMethod.SharedStorageAppendMethod
- api.SharedStorageClearMethod
- api.SharedStorageClearMethod.SharedStorageClearMethod
- api.SharedStorageDeleteMethod
- api.SharedStorageDeleteMethod.SharedStorageDeleteMethod
- api.SharedStorageModifierMethod
- api.SharedStorageSetMethod
- api.SharedStorageSetMethod.SharedStorageSetMethod
# It's possible that BCD could at some point record keys including:
# - api.SharedStorage.append.options_parameter.options_withLock_parameter
# - api.SharedStorage.clear.options_parameter.options_withLock_parameter
# - api.SharedStorage.delete.options_parameter.options_withLock_parameter
# - api.SharedStorage.set.options_parameter.options_withLock_parameter
17 changes: 17 additions & 0 deletions features/shared-storage-locks.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated from: shared-storage-locks.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support: {}
compat_features:
- api.SharedStorage.batchUpdate
- api.SharedStorageAppendMethod
- api.SharedStorageAppendMethod.SharedStorageAppendMethod
- api.SharedStorageClearMethod
- api.SharedStorageClearMethod.SharedStorageClearMethod
- api.SharedStorageDeleteMethod
- api.SharedStorageDeleteMethod.SharedStorageDeleteMethod
- api.SharedStorageModifierMethod
- api.SharedStorageSetMethod
- api.SharedStorageSetMethod.SharedStorageSetMethod

0 comments on commit e2dbe5d

Please sign in to comment.