9.14content-security-policy/inheritance/
80 / 83 WPT subtests passing
- Failed
- 3
- Timed out
- 0
- Not run
- 0
- Test files
- 25
- Blocking files
- 0
Chrome 78 / 83 WPT subtests passing on the same files, 2 blocking
Tests
25 test files hereEach test file opens in place to its subtests, and each subtest that did not pass to its message.
Test fileSubtests passingChromeFailedStanding
about-blank-from-javascript-url-inherits-csp-from-initiator.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- about:blank inherits initiator's CSP; cross-origin policy container does not leak.
auxiliary-blank-document.html 3 / 3 passingChrome 2 / 30 failedClean
3 passing subtests
- window.open() inherits CSPs on initial about:blank.
- For transient doc, violation event occurs in auxiliary, not opener window.
- window.open() inherits CSPs on transient about:blank.
blob-inherits-from-meta-http-equiv-with-invalid-characters.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- blob: URL inherits CSP from a meta tag whose contents have newline characters.
blob-url-inherits-from-initiator.sub.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Initiator is same-origin with target frame.
- Initiator is cross-origin with target frame.
document-write-iframe.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- document.open() keeps inherited CSPs on initial about:blank.
- document.open() does not change delivered CSPs.
- document.open() keeps inherited CSPs on transient about:blank.
frame-src-javascript-url.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- <iframe src='javascript:...'>'s inherits policy (dynamically inserted <iframe> is blocked)
history-iframe.sub.html 8 / 8 passingChrome 8 / 80 failedClean
8 passing subtests
- History navigation in iframe: "about:blank" document is navigated back from history same-origin.
- History navigation in iframe: "about:blank" document is navigated back from history cross-origin.
- History navigation in iframe: blob URL document is navigated back from history same-origin.
- History navigation in iframe: blob URL document is navigated back from history cross-origin.
- History navigation in iframe: data URL document is navigated back from history same-origin.
- History navigation in iframe: data URL document is navigated back from history cross-origin.
- History navigation in iframe: srcdoc iframe is navigated back from history same-origin.
- History navigation in iframe: srcdoc iframe is navigated back from history cross-origin.
history.sub.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- History navigation: "about:blank" document is navigated back from history same-origin.
- History navigation: "about:blank" document is navigated back from history cross-origin.
- History navigation: blob URL document is navigated back from history same-origin.
- History navigation: blob URL document is navigated back from history cross-origin.
- History navigation: blob URL document is navigated back from history (without bfcache on Firefox) same-origin.
- History navigation: blob URL document is navigated back from history (without bfcache on Firefox) cross-origin.
iframe-all-local-schemes-inherit-self.sub.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- <iframe>'s about:blank inherits policy.
- <iframe srcdoc>'s inherits policy.
- <iframe src='blob:...'>'s inherits policy.
- <iframe src='data:...'>'s inherits policy.
- <iframe src='javascript:...'>'s inherits policy.
- <iframe sandbox src='blob:...'>'s inherits policy. (opaque origin sandbox)
iframe-all-local-schemes.sub.html 10 / 10 passingChrome 10 / 100 failedClean
10 passing subtests
- <iframe>'s about:blank inherits policy.
- window about:blank inherits policy.
- <iframe srcdoc>'s inherits policy.
- <iframe src='blob:...'>'s inherits policy.
- window url='blob:...' inherits policy.
- <iframe src='data:...'>'s inherits policy.
- <iframe src='javascript:...'>'s inherits policy (static <img> is blocked)
- window url='javascript:...'>'s inherits policy (static <img> is blocked)
- <iframe src='javascript:...'>'s inherits policy (dynamically inserted <img> is blocked)
- <iframe sandbox src='blob:...'>'s inherits policy. (opaque origin sandbox)
iframe-srcdoc-history-inheritance.html 1 / 1 passingChrome 0 / 10 failedClean
1 passing subtest
- iframe-srcdoc-history-inheritance
iframe-srcdoc-inheritance.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- First image should be blocked
- Second image should be blocked
inheritance-from-initiator.sub.html 16 / 19 passingChrome 16 / 193 failedWith failures
/content-security-policy/inheritance/inheritance-from-initiator.sub.html?scheme=blob OK 2 / 5
- ¶
FAILblob: Changing contentWindow.location inherits from who changed it (apart from javascript:, which keeps target policies, and blob:, which always inherits from creator).
assert_equals: expected "p" but got "a"
- ¶
FAILblob: window.open() inherits from caller (apart from javascript:, which keeps target policies, and blob:, which always inherits from creator).
assert_equals: expected "p" but got "a"
- ¶
FAILblob: Click on anchor inherits from owner of the anchor (apart from javascript:, which keeps target policies, and blob:, which always inherits from creator).
assert_equals: expected "p" but got "b"
2 passing subtests
- blob: Setting src inherits from parent (apart from javascript:, which keeps target policies).
- blob: Changing contentWindow.location indirectly inherits from who changed it directly (apart from javascript:, which keeps target policies).
/content-security-policy/inheritance/inheritance-from-initiator.sub.html?scheme=data OK 7 / 7
7 passing subtests
- data: Setting src inherits from parent (apart from javascript:, which keeps target policies).
- data: Changing contentWindow.location inherits from who changed it (apart from javascript:, which keeps target policies, and blob:, which always inherits from creator).
- data: Changing contentWindow.location indirectly inherits from who changed it directly (apart from javascript:, which keeps target policies).
- data: window.open() inherits from caller (apart from javascript:, which keeps target policies, and blob:, which always inherits from creator).
- data: Click on anchor inherits from owner of the anchor (apart from javascript:, which keeps target policies, and blob:, which always inherits from creator).
- data: Form submission through submit() inherits from owner of form (apart from javascript:, which keeps target policies).
- data: Form submission through button click inherits from owner of form (apart from javascript:, which keeps target policies).
/content-security-policy/inheritance/inheritance-from-initiator.sub.html?scheme=javascript OK 7 / 7
7 passing subtests
- javascript: Setting src inherits from parent (apart from javascript:, which keeps target policies).
- javascript: Changing contentWindow.location inherits from who changed it (apart from javascript:, which keeps target policies, and blob:, which always inherits from creator).
- javascript: Changing contentWindow.location indirectly inherits from who changed it directly (apart from javascript:, which keeps target policies).
- javascript: window.open() inherits from caller (apart from javascript:, which keeps target policies, and blob:, which always inherits from creator).
- javascript: Click on anchor inherits from owner of the anchor (apart from javascript:, which keeps target policies, and blob:, which always inherits from creator).
- javascript: Form submission through submit() inherits from owner of form (apart from javascript:, which keeps target policies).
- javascript: Form submission through button click inherits from owner of form (apart from javascript:, which keeps target policies).
inherited-csp-list-modifications-are-local.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- Test that parent document image loads
- Test that embedded iframe document image does not load
- Test that spv event is fired
javascript-url-open-in-main-window.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Executing Javascript URL keeps enforcing previous CSPs of the document.
javascript-url-srcdoc-cross-origin-iframe-inheritance.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Nested cross-origin iframe should be blocked by frame-src 'self'.
location-reload.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- location.reload() of empty iframe.
- location.reload() of blob URL iframe.
- location.reload() of srcdoc iframe.
sandboxed-blob-scheme.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Violation report status OK.
sandboxed-data-scheme.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Violation report status OK.
unsandboxed-blob-scheme.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Violation report status OK.
unsandboxed-data-scheme.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Violation report status OK.
window-open-local-after-network-scheme.sub.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Popup being navigated to about:blank was same-origin.
- Popup being navigated to about:blank was cross-origin.
window.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- window.open() inherits policy.
- `document.write` into `window.open()` inherits policy.
- window.open('blob:...') inherits policy.
- window.open('javascript:...') inherits policy.