Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1898631 [wpt PR 46464] - [shared storage] Move the opaque origin …
…check to each SharedStorage method, a=testonly Automatic update from web-platform-tests [shared storage] Move the opaque origin check to each SharedStorage method Currently, we throw an error when accessing window.sharedStorage in an opaque origin context. This deviates from the specification, which specifies to throw an error for opaque origins within each method. We fix the code to align with the specification. The validation at mojom boundary is also moved to each method. This requires SharedStorageWorkletDevToolsAgentHostTest to update the page origin to https scheme. This also begins to address the ambiguity around whether sharedStorage.createWorklet(url) should be permitted in opaque origin contexts. By relocating the check, we create flexibility for potential future relaxation of these constraints. Bug: 342197901 Change-Id: Ie1583b341148681be202eeae39810cbfac546de9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5560723 Reviewed-by: Andrey Kosyakov <[email protected]> Commit-Queue: Yao Xiao <[email protected]> Reviewed-by: Cammie Smith Barnes <[email protected]> Cr-Commit-Position: refs/heads/main@{#1305355} -- wpt-commits: c08b0dd8248f432c007ee7d9e83d2522bfc54257 wpt-pr: 46464
- Loading branch information