You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[shared storage] During addModule(), switch to allow navigator but throw on navigator.locks
Currently, `navigator.locks` is the only available attribute on
`navigator` (i.e., a SharedStorageWorkletNavigator), and we want to
prevent Web Locks functionality during addModule(), because lock acquisition results (success, timing) could reveal data from other
same-origin worklets, which could enable cross-site information
leak via addModule() timing.
This change avoids unintentionally breaking existing code that might
legitimately read the navigator object (and expect no Exceptions thrown)
during module loading for purposes unrelated to Web Locks.
PR: WICG/shared-storage#227
Bug: 396148598
Change-Id: I67b217238912710ca89de319c6b7e1d9d2d1cbcf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6256882
Reviewed-by: Tsuyoshi Horo <[email protected]>
Commit-Queue: Yao Xiao <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1419694}
0 commit comments