Retain the referrer policy when loading an about:blank iframe. (#34432)

This allows the referrer policy to be inherited correctly by the iframe.

Signed-off-by: Shane Handley <shanehandley@fastmail.com>
This commit is contained in:
shanehandley 2024-11-30 17:15:36 +11:00 committed by GitHub
parent 096439b35e
commit 82bbff45b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 4 additions and 41 deletions

View file

@ -1,7 +1,3 @@
[iframe-inheritance-about-blank.html]
[The value of document.referrer in an about:blank iframe is the outer document's full URL, regardless of referrer policy]
expected: FAIL
[The fetch() API in an about:blank iframe with a custom URL referrer is fetched with a 'Referer` header that uses the outer document's URL along with its referrer policy]
expected: FAIL

View file

@ -1,9 +1,3 @@
[iframe-inheritance-javascript-child.html]
[Referrer Policy: iframes with javascript url reuse referrer policy 1]
expected: FAIL
[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

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

View file

@ -1,7 +1,3 @@
[popup-inheritance-about-blank.html]
[The fetch() API in an about:blank popup with a custom URL referrer is fetched with a 'Referer` header that uses the outer document's URL along with its referrer policy]
expected: FAIL
[The value of document.referrer in an about:blank popup is the outer document's full URL, regardless of referrer policy]
expected: FAIL

View file

@ -1,7 +1,3 @@
[iframe-inheritance-about-blank.html]
[The value of document.referrer in an about:blank iframe is the outer document's full URL, regardless of referrer policy]
expected: FAIL
[The fetch() API in an about:blank iframe with a custom URL referrer is fetched with a 'Referer` header that uses the outer document's URL along with its referrer policy]
expected: FAIL

View file

@ -1,9 +1,3 @@
[iframe-inheritance-javascript-child.html]
[Referrer Policy: iframes with javascript url reuse referrer policy 1]
expected: FAIL
[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

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

View file

@ -1,7 +1,3 @@
[popup-inheritance-about-blank.html]
[The fetch() API in an about:blank popup with a custom URL referrer is fetched with a 'Referer` header that uses the outer document's URL along with its referrer policy]
expected: FAIL
[The value of document.referrer in an about:blank popup is the outer document's full URL, regardless of referrer policy]
expected: FAIL