44.6referrer-policy/generic/

104 / 114 WPT subtests passing

Failed
10
Timed out
0
Not run
0
Test files
43
Blocking files
0

Chrome 109 / 114 WPT subtests passing on the same files, 2 blocking

Tests

2 directories, 22 test files here
DirectorySubtests passingChromeTest filesStanding
inheritance/23 / 2420 / 2412none blocking
subresource-test/9 / 1010 / 109none blocking

Each test file opens in place to its subtests, and each subtest that did not pass to its message.

Test fileSubtests passingChromeFailedStanding
first-meta-changed-after-second-added.http.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. document referrer policy is the value of the most recently modified <meta name="referrer"
iframe-src-change.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Checks that referrerpolicy is respected when an iframe's src changes.
iframe-upgrade-request-to-cross-origin.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. If an insecure iframe request is upgraded to https to be cross-origin, referrer policies that consider same-origin-ness should be applied correctly
iframe-upgrade-request-to-same-origin.sub.https.html1 / 1 passingChrome 0 / 10 failedClean
Standing
Clean runner status OK
Chrome
NONE-PASSED 0 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. If an insecure iframe request is upgraded to https to be same-origin, referrer policies that consider same-origin-ness should be applied correctly
meta-referrer-domparser.html3 / 3 passingChrome 3 / 30 failedClean
Standing
Clean runner status OK
Chrome
Clean 3 / 3 WPT subtests passing runner status OK
3 passing subtests
  1. DOMParser().parseFromString should not affect creator document's referrer policy
  2. Parsing <meta name='referrer'> inside <template> should not affect creator document's referrer policy
  3. Document.parseHTMLUnsafe() should not affect creator document's referrer policy
meta-referrer-outofhead-fetch.http.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Referer header was not send
meta-referrer-removed-1.http.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. removing <meta name="referrer"> should not change referrer policy
meta-referrer-removed-2.http.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. referrer policy does not change when second <meta name="referrer"> is removed
meta-tag-in-svg-image.html1 / 1 passingChrome 1 / 10 failedExempt
Standing
Exempt runner status ERROR
Chrome
Clean 1 / 1 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a renderer answers geometry

common/security-features requestViaImage reads the image back with getImageData(0, 0, img.clientWidth, img.clientHeight) (common.sub.js decodeImageData); with no renderer img.clientWidth is 0 (CSSOM View: no layout box), so getImageData throws IndexSizeError

Failing assertion
Unhandled rejection: IndexSizeError

Harness message

Unhandled rejection: IndexSizeError

/referrer-policy/generic/meta-tag-in-svg-image.html ERROR 1 / 1

Unhandled rejection: IndexSizeError
1 passing subtest
  1. Meta tag in SVG image loaded via img should be ignored
multiple-headers-and-values.html0 / 1 passingChrome 1 / 11 failedExempt
Standing
Exempt runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a renderer answers geometry

common/security-features requestViaImage reads the image back with getImageData(0, 0, img.clientWidth, img.clientHeight) (common.sub.js decodeImageData); with no renderer img.clientWidth is 0 (CSSOM View: no layout box), so getImageData throws IndexSizeError

Failing assertion
promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
  1. FAILImage uses the last recognized Referrer-Policy header value
    promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
multiple-headers-combined.html0 / 1 passingChrome 1 / 11 failedExempt
Standing
Exempt runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a renderer answers geometry

common/security-features requestViaImage reads the image back with getImageData(0, 0, img.clientWidth, img.clientHeight) (common.sub.js decodeImageData); with no renderer img.clientWidth is 0 (CSSOM View: no layout box), so getImageData throws IndexSizeError

Failing assertion
promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
  1. FAILImage uses the last recognized Referrer-Policy header value
    promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
multiple-headers-one-invalid.html0 / 1 passingChrome 1 / 11 failedExempt
Standing
Exempt runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK

Exempt from the 0.1 gate: Crane follows the browser majority

the document's two headers, "origin" and "origin no-referrer", parse to the policy "origin" (Referrer Policy 8.1: the last valid token; "origin no-referrer" is none), so a same-origin image request is sent the origin, as in Firefox and Safari ("expected <the page URL> but got <its origin>"); Chrome discards the header and sends the full URL. Crane sends the origin (Crane test crane/blk5-referrer-multiple-headers.html), but its one subtest stops earlier, at the image read-back

Crane matches
Firefox, Safari
Needs a renderer
Referrer policy header parsing fails if one header is invalid — common/security-features' requestViaImage reads the image back with getImageData(0, 0, img.clientWidth, img.clientHeight); with no renderer img.clientWidth is 0, so getImageData throws IndexSizeError before the referrer is compared (as in the 130 needs-renderer referrer-policy files); with a renderer the subtest would fail at the referrer, as Firefox and Safari do
Chrome
wpt.fyi run 4786307730243584: 1/1 (Chrome 157, 2358bd4835)
Firefox
wpt.fyi run 4877168468033536: 0/1 (Firefox 160, 2358bd4835)
Safari
wpt.fyi run 6479119966273536: 0/1 (Safari 27.2, 2358bd4835)
Revisit
when Firefox or Safari changes its result on a newer aligned wpt.fyi run, or a renderer answers geometry, or Crane's result moves
  1. FAILReferrer policy header parsing fails if one header is invalid
    promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
multiple-headers-one-unknown-token.html0 / 1 passingChrome 1 / 11 failedExempt
Standing
Exempt runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a renderer answers geometry

common/security-features requestViaImage reads the image back with getImageData(0, 0, img.clientWidth, img.clientHeight) (common.sub.js decodeImageData); with no renderer img.clientWidth is 0 (CSSOM View: no layout box), so getImageData throws IndexSizeError

Failing assertion
promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
  1. FAILImage uses last recognized referrer policy token from Referrer-Policy headers
    promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
multiple-headers.html0 / 1 passingChrome 1 / 11 failedExempt
Standing
Exempt runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a renderer answers geometry

common/security-features requestViaImage reads the image back with getImageData(0, 0, img.clientWidth, img.clientHeight) (common.sub.js decodeImageData); with no renderer img.clientWidth is 0 (CSSOM View: no layout box), so getImageData throws IndexSizeError

Failing assertion
promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
  1. FAILImage uses the last recognized Referrer-Policy header
    promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
refresh-cross-origin.sub.html18 / 18 passingChrome 18 / 180 failedClean
Standing
Clean runner status OK
Chrome
Clean 18 / 18 WPT subtests passing runner status OK
18 passing subtests
  1. cross-origin meta refresh with referrer policy "no-referrer" refreshes with the empty string as referrer
  2. cross-origin header refresh with referrer policy "no-referrer" refreshes with the empty string as referrer
  3. cross-origin meta refresh with referrer policy "no-referrer-when-downgrade" refreshes with full url as referrer
  4. cross-origin header refresh with referrer policy "no-referrer-when-downgrade" refreshes with full url as referrer
  5. cross-origin meta refresh with referrer policy "origin" refreshes with origin as referrer
  6. cross-origin header refresh with referrer policy "origin" refreshes with origin as referrer
  7. cross-origin meta refresh with referrer policy "origin-when-cross-origin" refreshes with origin as referrer
  8. cross-origin header refresh with referrer policy "origin-when-cross-origin" refreshes with origin as referrer
  9. cross-origin meta refresh with referrer policy "same-origin" refreshes with the empty string as referrer
  10. cross-origin header refresh with referrer policy "same-origin" refreshes with the empty string as referrer
  11. cross-origin meta refresh with referrer policy "strict-origin" refreshes with origin as referrer
  12. cross-origin header refresh with referrer policy "strict-origin" refreshes with origin as referrer
  13. cross-origin meta refresh with referrer policy "strict-origin-when-cross-origin" refreshes with origin as referrer
  14. cross-origin header refresh with referrer policy "strict-origin-when-cross-origin" refreshes with origin as referrer
  15. cross-origin meta refresh with referrer policy "unsafe-url" refreshes with full url as referrer
  16. cross-origin header refresh with referrer policy "unsafe-url" refreshes with full url as referrer
  17. cross-origin meta refresh with referrer policy "" refreshes with origin as referrer
  18. cross-origin header refresh with referrer policy "" refreshes with origin as referrer
refresh-same-origin.html18 / 18 passingChrome 18 / 180 failedClean
Standing
Clean runner status OK
Chrome
Clean 18 / 18 WPT subtests passing runner status OK
18 passing subtests
  1. same-origin meta refresh with referrer policy "no-referrer" refreshes with the empty string as referrer
  2. same-origin header refresh with referrer policy "no-referrer" refreshes with the empty string as referrer
  3. same-origin meta refresh with referrer policy "no-referrer-when-downgrade" refreshes with full url as referrer
  4. same-origin header refresh with referrer policy "no-referrer-when-downgrade" refreshes with full url as referrer
  5. same-origin meta refresh with referrer policy "origin" refreshes with origin as referrer
  6. same-origin header refresh with referrer policy "origin" refreshes with origin as referrer
  7. same-origin meta refresh with referrer policy "origin-when-cross-origin" refreshes with full url as referrer
  8. same-origin header refresh with referrer policy "origin-when-cross-origin" refreshes with full url as referrer
  9. same-origin meta refresh with referrer policy "same-origin" refreshes with full url as referrer
  10. same-origin header refresh with referrer policy "same-origin" refreshes with full url as referrer
  11. same-origin meta refresh with referrer policy "strict-origin" refreshes with origin as referrer
  12. same-origin header refresh with referrer policy "strict-origin" refreshes with origin as referrer
  13. same-origin meta refresh with referrer policy "strict-origin-when-cross-origin" refreshes with full url as referrer
  14. same-origin header refresh with referrer policy "strict-origin-when-cross-origin" refreshes with full url as referrer
  15. same-origin meta refresh with referrer policy "unsafe-url" refreshes with full url as referrer
  16. same-origin header refresh with referrer policy "unsafe-url" refreshes with full url as referrer
  17. same-origin meta refresh with referrer policy "" refreshes with full url as referrer
  18. same-origin header refresh with referrer policy "" refreshes with full url as referrer
refresh-same-url.html18 / 18 passingChrome 18 / 180 failedClean
Standing
Clean runner status OK
Chrome
Clean 18 / 18 WPT subtests passing runner status OK
18 passing subtests
  1. same-URL meta refresh with referrer policy "no-referrer" refreshes with the empty string as referrer
  2. same-URL header refresh with referrer policy "no-referrer" refreshes with the empty string as referrer
  3. same-URL meta refresh with referrer policy "no-referrer-when-downgrade" refreshes with full url as referrer
  4. same-URL header refresh with referrer policy "no-referrer-when-downgrade" refreshes with full url as referrer
  5. same-URL meta refresh with referrer policy "origin" refreshes with origin as referrer
  6. same-URL header refresh with referrer policy "origin" refreshes with origin as referrer
  7. same-URL meta refresh with referrer policy "origin-when-cross-origin" refreshes with full url as referrer
  8. same-URL header refresh with referrer policy "origin-when-cross-origin" refreshes with full url as referrer
  9. same-URL meta refresh with referrer policy "same-origin" refreshes with full url as referrer
  10. same-URL header refresh with referrer policy "same-origin" refreshes with full url as referrer
  11. same-URL meta refresh with referrer policy "strict-origin" refreshes with origin as referrer
  12. same-URL header refresh with referrer policy "strict-origin" refreshes with origin as referrer
  13. same-URL meta refresh with referrer policy "strict-origin-when-cross-origin" refreshes with full url as referrer
  14. same-URL header refresh with referrer policy "strict-origin-when-cross-origin" refreshes with full url as referrer
  15. same-URL meta refresh with referrer policy "unsafe-url" refreshes with full url as referrer
  16. same-URL header refresh with referrer policy "unsafe-url" refreshes with full url as referrer
  17. same-URL meta refresh with referrer policy "" refreshes with full url as referrer
  18. same-URL header refresh with referrer policy "" refreshes with full url as referrer
sandboxed-iframe-with-opaque-origin.html4 / 4 passingChrome 4 / 40 failedClean
Standing
Clean runner status OK
Chrome
Clean 4 / 4 WPT subtests passing runner status OK
4 passing subtests
  1. Sandboxed iframe with opaque origin doesn't send referrers to subresources
  2. Sandboxed iframe with tuple origin sends referrers to subresources
  3. Sandboxed iframe with opaque origin doesn't send referrers on navigation
  4. Sandboxed iframe with tuple origin sends referrers on navigation
second-meta-referrer-added-before-first.http.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. document referrer policy is the value of the most recently added <meta name="referrer">
unsupported-csp-referrer-directive.html0 / 1 passingChrome 1 / 11 failedExempt
Standing
Exempt runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a renderer answers geometry

common/security-features requestViaImage reads the image back with getImageData(0, 0, img.clientWidth, img.clientHeight) (common.sub.js decodeImageData); with no renderer img.clientWidth is 0 (CSSOM View: no layout box), so getImageData throws IndexSizeError

Failing assertion
promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
  1. FAILImage has a referrer despite CSP 'referrer' directive
    promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
unsupported-elements.html2 / 3 passingChrome 3 / 31 failedWith failures
Standing
With failures runner status OK
Chrome
Clean 3 / 3 WPT subtests passing runner status OK
  1. FAILReferrerpolicy attribute on <frame> is ignored and falls back to document policy
    assert_equals: <frame> document.referrer should fall back to document policy expected "http://web-platform.test:8000/referrer-policy/generic/unsupported-elements.html" but got ""
2 passing subtests
  1. Referrerpolicy attribute on <object> is ignored and falls back to document policy
  2. Referrerpolicy attribute on <embed> is ignored and falls back to document policy

Written as HTML by tools/wpt_site/generate.zig from the runner’s journals and result streams; site.js adds the interactive chart, sorting, filtering and search. Faces: Source Serif 4, Public Sans and Source Code Pro, under the SIL Open Font License. Crane on GitHub.