mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
chore: Add test for synthesized image documents with CSP headers. (#38191)
Adds a regression test for https://github.com/servo/servo/pull/38186, verifying that the CSP header on the image is ignored when it's loaded as a document. --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
a67998b520
commit
02297791c8
5 changed files with 40 additions and 0 deletions
29
tests/wpt/meta/MANIFEST.json
vendored
29
tests/wpt/meta/MANIFEST.json
vendored
|
@ -39126,6 +39126,23 @@
|
|||
]
|
||||
]
|
||||
},
|
||||
"content-security-policy": {
|
||||
"generic": {
|
||||
"image-document-ignores-csp.html": [
|
||||
"a3f6f64854d98d40c8c405831d6f3f9656fdf34d",
|
||||
[
|
||||
null,
|
||||
[
|
||||
[
|
||||
"/content-security-policy/generic/image-document-ignores-csp-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"contenteditable": {
|
||||
"synthetic-height.html": [
|
||||
"4d466bff412e6de924b9886ef808b49f7ff2b44d",
|
||||
|
@ -401739,6 +401756,10 @@
|
|||
"5c580273dcfc94eff137a0ae65314bebc9b7b5c0",
|
||||
[]
|
||||
],
|
||||
"image-document-ignores-csp-ref.html": [
|
||||
"e0747fd6c2810ccd771c5e33795d8c46ba56ff6c",
|
||||
[]
|
||||
],
|
||||
"negativeTests.js": [
|
||||
"44b4d7f683d8fb674a3c2b5d22eb8ea9d7b31ada",
|
||||
[]
|
||||
|
@ -402755,6 +402776,14 @@
|
|||
"2fa1e0ac0663a65deae6602621521cc2844b93de",
|
||||
[]
|
||||
],
|
||||
"pass3.png": [
|
||||
"2fa1e0ac0663a65deae6602621521cc2844b93de",
|
||||
[]
|
||||
],
|
||||
"pass3.png.headers": [
|
||||
"6581fd425ed9da6b6273d1eefb84ea9ac9ac6e53",
|
||||
[]
|
||||
],
|
||||
"ping.js": [
|
||||
"750ae45f969491ea29eaa47c85f96f97d94b415f",
|
||||
[]
|
||||
|
|
3
tests/wpt/tests/content-security-policy/generic/image-document-ignores-csp-ref.html
vendored
Normal file
3
tests/wpt/tests/content-security-policy/generic/image-document-ignores-csp-ref.html
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<iframe src="../support/pass.png">
|
7
tests/wpt/tests/content-security-policy/generic/image-document-ignores-csp.html
vendored
Normal file
7
tests/wpt/tests/content-security-policy/generic/image-document-ignores-csp.html
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSP header ignored for image document</title>
|
||||
<link rel="help" href="https://github.com/servo/servo/issues/38180">
|
||||
<link rel='match' href='image-document-ignores-csp-ref.html'>
|
||||
<link rel="author" title="Josh Matthews" href="mailto:josh@joshmatthews.net">
|
||||
<iframe src="../support/pass3.png">
|
BIN
tests/wpt/tests/content-security-policy/support/pass3.png
vendored
Normal file
BIN
tests/wpt/tests/content-security-policy/support/pass3.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
1
tests/wpt/tests/content-security-policy/support/pass3.png.headers
vendored
Normal file
1
tests/wpt/tests/content-security-policy/support/pass3.png.headers
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
Content-Security-Policy: default-src 'none'
|
Loading…
Add table
Add a link
Reference in a new issue