-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shared Storage: Allow iframe header writes if permission on redirect
We correct the behavior of writing to shared storage from response headers to match the spec with regard to how `PermissionsPolicy` checks are handled. Currently, if permission is revoked for any request in a redirect chain, then no subsequent request in that chain can write to shared storage from response headers. This CL updates the behavior for `HTMLIframeElement` so that, for redirect chains of requests that have opted-in via `sharedStorageWritable`, each request in the chain has its `PermissionsPolicy` checked independently of the others in the chain. https://crrev.com/c/4911530 will do the same for `fetch()` and `HTMLImageElement`, and fixes the network service code common to all three. Bug: 1218540,1489536 Change-Id: I292c558d9ca922171a00c106a6adad142010b674 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4935951 Reviewed-by: Avi Drissman <avi@chromium.org> Commit-Queue: Cammie Smith Barnes <cammie@chromium.org> Reviewed-by: Yao Xiao <yaoxia@chromium.org> Cr-Commit-Position: refs/heads/main@{#1217159}
- Loading branch information
1 parent
dc055aa
commit 3cad1ba
Showing
8 changed files
with
290 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.