Implement PolicyContainer and update the default ReferrerPolicy (#33977)

* Implement PolicyContainer

Signed-off-by: Shane Handley <shanehandley@fastmail.com>

* implement small parts of fetch that interact with policy container

Signed-off-by: Shane Handley <shanehandley@fastmail.com>

* fix: allow policy container's csp list to be unset

Signed-off-by: Shane Handley <shanehandley@fastmail.com>

* fix: use the correct default policy when parsing from a token

Signed-off-by: Shane Handley <shanehandley@fastmail.com>

---------

Signed-off-by: Shane Handley <shanehandley@fastmail.com>
This commit is contained in:
shanehandley 2024-11-08 18:19:23 +11:00 committed by GitHub
parent 4f6283d7fe
commit 6451767428
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
201 changed files with 210 additions and 5178 deletions

View file

@ -0,0 +1,3 @@
[iframe-inheritance-document-write.html]
[document.open() should not change the referrer policy of the opened document.]
expected: FAIL

View file

@ -5,3 +5,5 @@
[Referrer Policy: iframes with javascript url reuse referrer policy 2]
expected: FAIL
[Referrer Policy: iframes with javascript url reuse referrer policy]
expected: FAIL

View file

@ -0,0 +1,3 @@
[iframe-inheritance-javascript.html]
[Referrer Policy: iframes with javascript url reuse referrer policy 1]
expected: FAIL

View file

@ -1,4 +0,0 @@
[iframe-inheritance-srcdoc-child.html]
[iframes srcdoc child correctly inherit the ancestor's referrer policy]
expected: FAIL

View file

@ -4,7 +4,3 @@
[Even after a navigation from another initiator, srcdoc iframe still inherits referrer policy from the parent.]
expected: TIMEOUT
[Srcdoc iframe inherits referrer policy from parent on creation.]
expected: FAIL