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| Directory | Subtests passing | Chrome | Test files | Standing |
|---|---|---|---|---|
inheritance/ | 23 / 24 | 20 / 24 | 12 | none blocking |
subresource- | 9 / 10 | 10 / 10 | 9 | none blocking |
Each test file opens in place to its subtests, and each subtest that did not pass to its message.
first-meta-changed-after-second-added.http.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- document referrer policy is the value of the most recently modified <meta name="referrer"
iframe-src-change.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Checks that referrerpolicy is respected when an iframe's src changes.
iframe-upgrade-request-to-cross-origin.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- 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.html 1 / 1 passingChrome 0 / 10 failedClean
1 passing subtest
- If an insecure iframe request is upgraded to https to be same-origin, referrer policies that consider same-origin-ness should be applied correctly
link-rel-prefetch.html 0 / 1 passingChrome 1 / 11 failedExempt
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"
- ¶
FAILPrefetched image.
promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
meta-referrer-domparser.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- DOMParser().parseFromString should not affect creator document's referrer policy
- Parsing <meta name='referrer'> inside <template> should not affect creator document's referrer policy
- Document.parseHTMLUnsafe() should not affect creator document's referrer policy
meta-referrer-outofhead-fetch.http.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Referer header was not send
meta-referrer-removed-1.http.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- removing <meta name="referrer"> should not change referrer policy
meta-referrer-removed-2.http.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- referrer policy does not change when second <meta name="referrer"> is removed
meta-tag-in-svg-image.html 1 / 1 passingChrome 1 / 10 failedExempt
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
- Meta tag in SVG image loaded via img should be ignored
multiple-headers-and-values.html 0 / 1 passingChrome 1 / 11 failedExempt
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"
- ¶
FAILImage uses the last recognized Referrer-Policy header value
promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
multiple-headers-combined.html 0 / 1 passingChrome 1 / 11 failedExempt
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"
- ¶
FAILImage uses the last recognized Referrer-Policy header value
promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
multiple-headers-one-invalid.html 0 / 1 passingChrome 1 / 11 failedExempt
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
- ¶
FAILReferrer policy header parsing fails if one header is invalid
promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
multiple-headers-one-unknown-token.html 0 / 1 passingChrome 1 / 11 failedExempt
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"
- ¶
FAILImage uses last recognized referrer policy token from Referrer-Policy headers
promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
multiple-headers.html 0 / 1 passingChrome 1 / 11 failedExempt
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"
- ¶
FAILImage uses the last recognized Referrer-Policy header
promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
refresh-cross-origin.sub.html 18 / 18 passingChrome 18 / 180 failedClean
18 passing subtests
- cross-origin meta refresh with referrer policy "no-referrer" refreshes with the empty string as referrer
- cross-origin header refresh with referrer policy "no-referrer" refreshes with the empty string as referrer
- cross-origin meta refresh with referrer policy "no-referrer-when-downgrade" refreshes with full url as referrer
- cross-origin header refresh with referrer policy "no-referrer-when-downgrade" refreshes with full url as referrer
- cross-origin meta refresh with referrer policy "origin" refreshes with origin as referrer
- cross-origin header refresh with referrer policy "origin" refreshes with origin as referrer
- cross-origin meta refresh with referrer policy "origin-when-cross-origin" refreshes with origin as referrer
- cross-origin header refresh with referrer policy "origin-when-cross-origin" refreshes with origin as referrer
- cross-origin meta refresh with referrer policy "same-origin" refreshes with the empty string as referrer
- cross-origin header refresh with referrer policy "same-origin" refreshes with the empty string as referrer
- cross-origin meta refresh with referrer policy "strict-origin" refreshes with origin as referrer
- cross-origin header refresh with referrer policy "strict-origin" refreshes with origin as referrer
- cross-origin meta refresh with referrer policy "strict-origin-when-cross-origin" refreshes with origin as referrer
- cross-origin header refresh with referrer policy "strict-origin-when-cross-origin" refreshes with origin as referrer
- cross-origin meta refresh with referrer policy "unsafe-url" refreshes with full url as referrer
- cross-origin header refresh with referrer policy "unsafe-url" refreshes with full url as referrer
- cross-origin meta refresh with referrer policy "" refreshes with origin as referrer
- cross-origin header refresh with referrer policy "" refreshes with origin as referrer
refresh-same-origin.html 18 / 18 passingChrome 18 / 180 failedClean
18 passing subtests
- same-origin meta refresh with referrer policy "no-referrer" refreshes with the empty string as referrer
- same-origin header refresh with referrer policy "no-referrer" refreshes with the empty string as referrer
- same-origin meta refresh with referrer policy "no-referrer-when-downgrade" refreshes with full url as referrer
- same-origin header refresh with referrer policy "no-referrer-when-downgrade" refreshes with full url as referrer
- same-origin meta refresh with referrer policy "origin" refreshes with origin as referrer
- same-origin header refresh with referrer policy "origin" refreshes with origin as referrer
- same-origin meta refresh with referrer policy "origin-when-cross-origin" refreshes with full url as referrer
- same-origin header refresh with referrer policy "origin-when-cross-origin" refreshes with full url as referrer
- same-origin meta refresh with referrer policy "same-origin" refreshes with full url as referrer
- same-origin header refresh with referrer policy "same-origin" refreshes with full url as referrer
- same-origin meta refresh with referrer policy "strict-origin" refreshes with origin as referrer
- same-origin header refresh with referrer policy "strict-origin" refreshes with origin as referrer
- same-origin meta refresh with referrer policy "strict-origin-when-cross-origin" refreshes with full url as referrer
- same-origin header refresh with referrer policy "strict-origin-when-cross-origin" refreshes with full url as referrer
- same-origin meta refresh with referrer policy "unsafe-url" refreshes with full url as referrer
- same-origin header refresh with referrer policy "unsafe-url" refreshes with full url as referrer
- same-origin meta refresh with referrer policy "" refreshes with full url as referrer
- same-origin header refresh with referrer policy "" refreshes with full url as referrer
refresh-same-url.html 18 / 18 passingChrome 18 / 180 failedClean
18 passing subtests
- same-URL meta refresh with referrer policy "no-referrer" refreshes with the empty string as referrer
- same-URL header refresh with referrer policy "no-referrer" refreshes with the empty string as referrer
- same-URL meta refresh with referrer policy "no-referrer-when-downgrade" refreshes with full url as referrer
- same-URL header refresh with referrer policy "no-referrer-when-downgrade" refreshes with full url as referrer
- same-URL meta refresh with referrer policy "origin" refreshes with origin as referrer
- same-URL header refresh with referrer policy "origin" refreshes with origin as referrer
- same-URL meta refresh with referrer policy "origin-when-cross-origin" refreshes with full url as referrer
- same-URL header refresh with referrer policy "origin-when-cross-origin" refreshes with full url as referrer
- same-URL meta refresh with referrer policy "same-origin" refreshes with full url as referrer
- same-URL header refresh with referrer policy "same-origin" refreshes with full url as referrer
- same-URL meta refresh with referrer policy "strict-origin" refreshes with origin as referrer
- same-URL header refresh with referrer policy "strict-origin" refreshes with origin as referrer
- same-URL meta refresh with referrer policy "strict-origin-when-cross-origin" refreshes with full url as referrer
- same-URL header refresh with referrer policy "strict-origin-when-cross-origin" refreshes with full url as referrer
- same-URL meta refresh with referrer policy "unsafe-url" refreshes with full url as referrer
- same-URL header refresh with referrer policy "unsafe-url" refreshes with full url as referrer
- same-URL meta refresh with referrer policy "" refreshes with full url as referrer
- same-URL header refresh with referrer policy "" refreshes with full url as referrer
sandboxed-iframe-with-opaque-origin.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Sandboxed iframe with opaque origin doesn't send referrers to subresources
- Sandboxed iframe with tuple origin sends referrers to subresources
- Sandboxed iframe with opaque origin doesn't send referrers on navigation
- Sandboxed iframe with tuple origin sends referrers on navigation
second-meta-referrer-added-before-first.http.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- document referrer policy is the value of the most recently added <meta name="referrer">
unsupported-csp-referrer-directive.html 0 / 1 passingChrome 1 / 11 failedExempt
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"
- ¶
FAILImage has a referrer despite CSP 'referrer' directive
promise_test: Unhandled rejection with value: object "IndexSizeError: IndexSizeError"
unsupported-elements.html 2 / 3 passingChrome 3 / 31 failedWith failures
- ¶
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
- Referrerpolicy attribute on <object> is ignored and falls back to document policy
- Referrerpolicy attribute on <embed> is ignored and falls back to document policy