Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1934749 [wpt PR 49486] - [shared storage] Add SharedStorageSet/Ap…
…pend/Delete/Clear IDL Interface, a=testonly Automatic update from web-platform-tests [shared storage] Add SharedStorageSet/Append/Delete/Clear IDL Interface Implement the constructor for `SharedStorageSetMethod`, etc. The error handling logic mirrors the existing sharedStorage.set(), etc. To allow code reuse, the sharedStorage.set(), etc. methods now creates the object and early return on exceptions. Note that even though we no longer explicitly call resolver->Reject() for sharedStorage.set(), etc., Chrome still converts thrown exceptions to rejected promises (to adhere to the specification [1]), so the end result is the same. This prepares for the implementation of the `sharedStorage.batchUpdate(methods)` method, as part of the Web Lock integration proposal: - WICG/shared-storage#199 - WICG/shared-storage#205 [1] https://w3ctag.github.io/promises-guide/#always-return-promises Bug: 373899210 Change-Id: Ie4edfedbe755afeb3db5ca557fd74482bac96138 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6054694 Commit-Queue: Yao Xiao <yaoxia@chromium.org> Reviewed-by: Cammie Smith Barnes <cammie@chromium.org> Cr-Commit-Position: refs/heads/main@{#1390779} -- wpt-commits: 6a83407ba15135836db19928b90a225bf74eaa1d wpt-pr: 49486
- Loading branch information