diff options
author | Moonchild <moonchild@palemoon.org> | 2021-02-25 01:03:57 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-02-25 01:03:57 +0000 |
commit | ceadffab6b357723981a429e11222daf6cd6dcfb (patch) | |
tree | 5603053048d6a460f79b22bdf165fb74d32d39b0 /testing/web-platform/tests/content-security-policy/svg | |
parent | 14fb2f966e9b54598c451e3cb35b4aa0480dafed (diff) | |
parent | ad5a13bd501e379517da1a944c104a11d951a3f5 (diff) | |
download | UXP-RC_20210225.tar UXP-RC_20210225.tar.gz UXP-RC_20210225.tar.lz UXP-RC_20210225.tar.xz UXP-RC_20210225.zip |
Merge branch 'master' into releaseRC_20210225
Diffstat (limited to 'testing/web-platform/tests/content-security-policy/svg')
9 files changed, 0 insertions, 200 deletions
diff --git a/testing/web-platform/tests/content-security-policy/svg/including.sub.svg b/testing/web-platform/tests/content-security-policy/svg/including.sub.svg deleted file mode 100644 index 99b416b5e..000000000 --- a/testing/web-platform/tests/content-security-policy/svg/including.sub.svg +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" standalone="no"?> -<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" - "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> -<svg width="6cm" height="5cm" viewBox="0 0 600 500" - xmlns="http://www.w3.org/2000/svg" version="1.1"> - <desc>using SVG as a resource doc should apply this doc's CSP</desc> - - <use xlink:href="scripted.svg#postmessagescript" /> - - <circle cx="300" cy="225" r="100" fill="lawngreen"/> - - <text x="300" y="250" - font-family="Verdana" - font-size="50" - text-anchor="middle"> - PASS - </text> -</svg> diff --git a/testing/web-platform/tests/content-security-policy/svg/including.sub.svg.sub.headers b/testing/web-platform/tests/content-security-policy/svg/including.sub.svg.sub.headers deleted file mode 100644 index 0f3f281d9..000000000 --- a/testing/web-platform/tests/content-security-policy/svg/including.sub.svg.sub.headers +++ /dev/null @@ -1,6 +0,0 @@ -Expires: Mon, 26 Jul 1997 05:00:00 GMT -Cache-Control: no-store, no-cache, must-revalidate -Cache-Control: post-check=0, pre-check=0, false -Pragma: no-cache -Set-Cookie: including={{$id:uuid()}}; Path=/content-security-policy/svg -Content-Security-Policy: script-src 'none'; diff --git a/testing/web-platform/tests/content-security-policy/svg/scripted.svg b/testing/web-platform/tests/content-security-policy/svg/scripted.svg deleted file mode 100644 index a8aca4e30..000000000 --- a/testing/web-platform/tests/content-security-policy/svg/scripted.svg +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" standalone="no"?> -<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" - "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> -<svg width="6cm" height="5cm" viewBox="0 0 600 500" - xmlns="http://www.w3.org/2000/svg" version="1.1"> - <desc>Example script01 - redirect</desc> - - <script id="postmessagescript" type="application/ecmascript"> <![CDATA[ - location = "/content-security-policy/blink-contrib/resources/postmessage-fail.html"; - ]]> </script> - - <circle cx="300" cy="225" r="100" fill="lawngreen"/> - - <text x="300" y="250" - font-family="Verdana" - font-size="50" - text-anchor="middle"> - PASS - </text> -</svg> diff --git a/testing/web-platform/tests/content-security-policy/svg/scripted.svg.sub.headers b/testing/web-platform/tests/content-security-policy/svg/scripted.svg.sub.headers deleted file mode 100644 index 0e90e147a..000000000 --- a/testing/web-platform/tests/content-security-policy/svg/scripted.svg.sub.headers +++ /dev/null @@ -1,6 +0,0 @@ -Expires: Mon, 26 Jul 1997 05:00:00 GMT -Cache-Control: no-store, no-cache, must-revalidate -Cache-Control: post-check=0, pre-check=0, false -Pragma: no-cache -Set-Cookie: scripted={{$id:uuid()}}; Path=/content-security-policy/svg -Content-Security-Policy: script-src 'none'; diff --git a/testing/web-platform/tests/content-security-policy/svg/svg-from-guid.html b/testing/web-platform/tests/content-security-policy/svg/svg-from-guid.html deleted file mode 100644 index b565e94a4..000000000 --- a/testing/web-platform/tests/content-security-policy/svg/svg-from-guid.html +++ /dev/null @@ -1,51 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <title>svg-from-guid</title> - <script src="/resources/testharness.js"></script> - <script src="/resources/testharnessreport.js"></script> - <script src='../support/logTest.sub.js?logs=["TEST COMPLETE"]'></script> - <script src="../support/alertAssert.sub.js?alerts=[]"></script> - <script> - window.addEventListener("message", function(event) { - alert_assert(event.data); - }, false); - window.addEventListener('load', function() { - setTimeout(function() { - log("TEST COMPLETE"); - }, 1); - }); - </script> -</head> - -<body> - <p>Tests that an SVG loaded in an iframe with a policy enforces it, not - the policy enforced by this parent frame. The SVG should render and - not redirect to a different resource.</p> - <!-- -<?xml version="1.0" standalone="no"?> -<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" - "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> -<svg width="6cm" height="5cm" viewBox="0 0 600 500" - xmlns="http://www.w3.org/2000/svg" version="1.1"> - <desc>Example script01 - redirect</desc> - - <script id="postmessagescript" type="application/ecmascript"> <![CDATA[ - location = "/content-security-policy/blink-contrib/resources/postmessage-fail.html"; - ]]> </script> - - <circle cx="300" cy="225" r="100" fill="lawngreen"/> - - <text x="300" y="250" - font-family="Verdana" - font-size="50" - text-anchor="middle"> - PASS - </text> -</svg> - --> - <iframe name="test_target" id="test_iframe" src="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIg0KICAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgd2lkdGg9IjZjbSIgaGVpZ2h0PSI1Y20iIHZpZXdCb3g9IjAgMCA2MDAgNTAwIg0KICAgICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSI+DQogIDxkZXNjPkV4YW1wbGUgc2NyaXB0MDEgLSByZWRpcmVjdDwvZGVzYz4NCg0KICA8c2NyaXB0IGlkPSJwb3N0bWVzc2FnZXNjcmlwdCIgdHlwZT0iYXBwbGljYXRpb24vZWNtYXNjcmlwdCI+IDwhW0NEQVRBWw0KICAgIGxvY2F0aW9uID0gIi9jb250ZW50LXNlY3VyaXR5LXBvbGljeS9ibGluay1jb250cmliL3Jlc291cmNlcy9wb3N0bWVzc2FnZS1mYWlsLmh0bWwiOw0KICBdXT4gPC9zY3JpcHQ+DQoNCiAgPGNpcmNsZSBjeD0iMzAwIiBjeT0iMjI1IiByPSIxMDAiIGZpbGw9Imxhd25ncmVlbiIvPg0KDQogIDx0ZXh0IHg9IjMwMCIgeT0iMjUwIg0KICAgICAgICBmb250LWZhbWlseT0iVmVyZGFuYSINCiAgICAgICAgZm9udC1zaXplPSI1MCINCiAgICAgICAgdGV4dC1hbmNob3I9Im1pZGRsZSI+DQogICAgICBQQVNTDQogICAgPC90ZXh0Pg0KPC9zdmc+"></iframe> - <div id="log"></div> -</body> - -</html> diff --git a/testing/web-platform/tests/content-security-policy/svg/svg-inline.sub.html b/testing/web-platform/tests/content-security-policy/svg/svg-inline.sub.html deleted file mode 100644 index 7beb295f1..000000000 --- a/testing/web-platform/tests/content-security-policy/svg/svg-inline.sub.html +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <title>svg-policy-with-resource</title> - <script src="/resources/testharness.js"></script> - <script src="/resources/testharnessreport.js"></script> -</head> - -<body> - <p>Tests that an SVG loaded in an iframe with a policy enforces it, not - the policy enforced by this parent frame. The SVG should render and - not redirect to a different resource.</p> - <div id="log"></div> - <?xml version="1.0" standalone="no"?> -<svg width="6cm" height="5cm" viewBox="0 0 600 500" - xmlns="http://www.w3.org/2000/svg" version="1.1"> - - <script type="application/ecmascript" - xlink:href="http://www1.{{host}}:{{ports[http][0]}}/content-security-policy/support/.js"> - </script> - - <circle cx="300" cy="225" r="100" fill="lawngreen"/> - - <text x="300" y="250" - font-family="Verdana" - font-size="50" - text-anchor="middle"> - PASS - </text> -</svg> - - <script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=script-src%20%27self%27+%27unsafe-inline%27'></script> -</body> -</html> diff --git a/testing/web-platform/tests/content-security-policy/svg/svg-inline.sub.html.sub.headers b/testing/web-platform/tests/content-security-policy/svg/svg-inline.sub.html.sub.headers deleted file mode 100644 index a846c4b16..000000000 --- a/testing/web-platform/tests/content-security-policy/svg/svg-inline.sub.html.sub.headers +++ /dev/null @@ -1,6 +0,0 @@ -Expires: Mon, 26 Jul 1997 05:00:00 GMT -Cache-Control: no-store, no-cache, must-revalidate -Cache-Control: post-check=0, pre-check=0, false -Pragma: no-cache -Set-Cookie: svg-inline={{$id:uuid()}}; Path=/content-security-policy/svg/ -Content-Security-Policy: script-src 'self' 'unsafe-inline'; report-uri ../support/report.py?op=put&reportID={{$id}}
\ No newline at end of file diff --git a/testing/web-platform/tests/content-security-policy/svg/svg-policy-resource-doc-includes.html b/testing/web-platform/tests/content-security-policy/svg/svg-policy-resource-doc-includes.html deleted file mode 100644 index 3ca626240..000000000 --- a/testing/web-platform/tests/content-security-policy/svg/svg-policy-resource-doc-includes.html +++ /dev/null @@ -1,29 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <title>svg-policy-with-resource</title> - <script src="/resources/testharness.js"></script> - <script src="/resources/testharnessreport.js"></script> - <script src='../support/logTest.sub.js?logs=["TEST COMPLETE"]'></script> - <script src="../support/alertAssert.sub.js?alerts=[]"></script> - <script> - window.addEventListener("message", function(event) { - alert_assert(event.data); - }, false); - window.addEventListener('load', function() { - setTimeout(function() { - log("TEST COMPLETE"); - }, 0); - }); - </script> -</head> - -<body> - <p>Tests that an SVG loaded in an iframe with a policy enforces it, not - the policy enforced by this parent frame. The SVG should render and - not redirect to a different resource.</p> - <iframe name="test_target" id="test_iframe" src="scripted.svg"></iframe> - <div id="log"></div> -</body> - -</html> diff --git a/testing/web-platform/tests/content-security-policy/svg/svg-policy-with-resource.html b/testing/web-platform/tests/content-security-policy/svg/svg-policy-with-resource.html deleted file mode 100644 index 88ba0b3e6..000000000 --- a/testing/web-platform/tests/content-security-policy/svg/svg-policy-with-resource.html +++ /dev/null @@ -1,30 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <title>svg-policy-with-resource</title> - <script src="/resources/testharness.js"></script> - <script src="/resources/testharnessreport.js"></script> - <script src='../support/logTest.sub.js?logs=["TEST COMPLETE"]'></script> - <script src="../support/alertAssert.sub.js?alerts=[]"></script> - <script> - window.addEventListener("message", function(event) { - alert_assert(event.data); - }, false); - window.addEventListener('load', function() { - setTimeout(function() { - log("TEST COMPLETE"); - }, 0); - }); - </script> -</head> - -<body> - <p>Tests that an SVG loaded in an iframe with a policy enforces it, not - the policy enforced by this parent frame. The SVG should render and - not redirect to a different resource.</p> - <iframe name="test_target" id="test_iframe" src="scripted.svg"></iframe> - <object type="image/svg+xml" data="scripted.svg"></object> - <div id="log"></div> -</body> - -</html> |