Commit c79e8f3
committed
Make COOP+COEP do not imply crossOriginIsolated.
The [specification] currently requires [COOP] + [COEP] to give access to
crossOriginIsolated capabilities like SharedArrayBuffer.
Some platforms can't easily support multiple processes (like Android
Webview). Therefore, they can't really support crossOriginIsolated.
However the are no strong reasons for them not to enforce COEP (and
maybe COOP) when their associated headers are present.
It would be great enforcing COEP (and maybe COOP) on all platforms,
desptie the lack of crossOriginIsolated capabilities.
This patch makes the specification to allow (instead of requiring)
platform to set the crossOriginIsolated flag when both COOP and COEP are
used.
Setting crossOriginIsolated becomes platform dependent. In exchange, we
can enforce COEP (and COOP) in a non platform dependent way, without
conflicting with the specification about crossOriginIsolated.
[Bug]: #6060
[specification]:
https://html.spec.whatwg.org/#cross-origin-opener-policies
[COOP]:
https://html.spec.whatwg.org/#cross-origin-opener-policy
[COEP]:
https://html.spec.whatwg.org/#coep1 parent 895fd80 commit c79e8f3
1 file changed
Lines changed: 35 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79602 | 79602 | | |
79603 | 79603 | | |
79604 | 79604 | | |
| 79605 | + | |
| 79606 | + | |
| 79607 | + | |
| 79608 | + | |
| 79609 | + | |
| 79610 | + | |
| 79611 | + | |
| 79612 | + | |
79605 | 79613 | | |
79606 | 79614 | | |
79607 | 79615 | | |
| |||
79668 | 79676 | | |
79669 | 79677 | | |
79670 | 79678 | | |
79671 | | - | |
79672 | | - | |
79673 | | - | |
79674 | | - | |
79675 | | - | |
| 79679 | + | |
| 79680 | + | |
| 79681 | + | |
| 79682 | + | |
| 79683 | + | |
| 79684 | + | |
| 79685 | + | |
| 79686 | + | |
| 79687 | + | |
| 79688 | + | |
| 79689 | + | |
| 79690 | + | |
| 79691 | + | |
79676 | 79692 | | |
79677 | 79693 | | |
79678 | 79694 | | |
| |||
88664 | 88680 | | |
88665 | 88681 | | |
88666 | 88682 | | |
88667 | | - | |
| 88683 | + | |
| 88684 | + | |
| 88685 | + | |
| 88686 | + | |
| 88687 | + | |
| 88688 | + | |
| 88689 | + | |
| 88690 | + | |
| 88691 | + | |
| 88692 | + | |
| 88693 | + | |
| 88694 | + | |
| 88695 | + | |
| 88696 | + | |
88668 | 88697 | | |
88669 | 88698 | | |
88670 | 88699 | | |
| |||
0 commit comments