Remove referrer policy from document (#34263)

* Remove the referrer policy from document and rely on its policy container

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

* Make ReferrerPolicy non-optional, instead using a new enum value to represent the empty string case

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

* Fix clippy issue

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

* Fix usage of Option<ReferrerPolicy> in unit test

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

---------

Signed-off-by: Shane Handley <shanehandley@fastmail.com>
This commit is contained in:
shanehandley 2024-11-19 23:45:10 +11:00 committed by GitHub
parent 83f8e88818
commit 975e2ae859
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
108 changed files with 171 additions and 1509 deletions

View file

@ -1,18 +0,0 @@
[referrer-no-referrer.sub.html]
[Importing a same-origin top-level script with the no-referrer policy.]
expected: FAIL
[Importing a remote-origin top-level script with the no-referrer policy.]
expected: FAIL
[Importing a same-origin descendant script from a same-origin top-level script with the no-referrer policy.]
expected: FAIL
[Importing a remote-origin descendant script from a same-origin top-level script with the no-referrer policy.]
expected: FAIL
[Importing a remote-origin descendant script from a remote-origin top-level script with the no-referrer policy.]
expected: FAIL
[Importing a same-origin descendant script from a remote-origin top-level script with the no-referrer policy.]
expected: FAIL

View file

@ -1,10 +1,4 @@
[referrer-origin.sub.html]
[Importing a same-origin top-level script with the origin policy.]
expected: FAIL
[Importing a same-origin descendant script from a same-origin top-level script with the origin policy.]
expected: FAIL
[Importing a remote-origin descendant script from a remote-origin top-level script with the origin policy.]
expected: FAIL

View file

@ -2,18 +2,12 @@
[Parent module delivered with `no-referrer-when-downgrade` policy importing a same-origin descendant script.]
expected: FAIL
[Parent module delivered with `origin` policy importing a same-origin descendant script.]
expected: FAIL
[Remote parent module delivered with `origin-when-cross-origin` policy importing a same-origin-to-parent-module descendant script.]
expected: FAIL
[Remote parent module delivered with `origin-when-cross-origin` policy importing a cross-origin-to-parent-module descendant script.]
expected: FAIL
[Parent module delivered with invalid policy importing a same-origin descendant script.]
expected: FAIL
[Parent module delivered with `same-origin` policy importing a same-origin descendant script.]
expected: FAIL

View file

@ -1,13 +1,7 @@
[referrer-same-origin.sub.html]
[Importing a remote-origin top-level script with the same-origin policy.]
expected: FAIL
[Importing a same-origin descendant script from a same-origin top-level script with the same-origin policy.]
expected: FAIL
[Importing a remote-origin descendant script from a same-origin top-level script with the same-origin policy.]
expected: FAIL
[Importing a remote-origin descendant script from a remote-origin top-level script with the same-origin policy.]
expected: FAIL

View file

@ -10,6 +10,3 @@
[Importing a same-origin descendant script from a remote-origin top-level script with the unsafe-url policy.]
expected: FAIL
[Importing a remote-origin top-level script with the unsafe-url policy.]
expected: FAIL