-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make COOP+COEP not imply cross-origin isolated
This contains 3 changes: --- The specification currently requires COOP+COEP to give access to cross-origin isolated capabilities like SharedArrayBuffer. Some platforms can't easily support multiple processes (like Android Webview). Therefore, they can't really support cross-origin isolated. However the are no strong reasons for them not to enforce COEP and COEP when their associated headers are present. This patch changes the specification to allow (instead of requiring) platforms to grant the cross-origin isolated capability when both COOP and COEP are used. The browsing context group's cross-origin-isolation mode becomes a tri-state: - none (not COOP+COEP) - logical (COOP+COEP, without granting cross-origin isolated) - concrete (COOP+COEP, with granting cross-origin isolated) Closes #6060. --- When setting document.domain, both properties were previously checked: 1. agent-cluster's cross-origin-isolation mode. 2. agent-cluster's origin-keyed. The first has been removed, since it already implies the second. --- When serializing a SharedArrayBuffer, check the cross-origin isolated capability instead of the cross-origin isolation mode. This was an oversight from when the cross-origin isolated capability was first introduced.
- Loading branch information
1 parent
2928953
commit cbcf6ac
Showing
1 changed file
with
101 additions
and
42 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