| Index: LayoutTests/http/tests/htmlimports/csp-ignored-in-import.html
|
| diff --git a/LayoutTests/http/tests/htmlimports/csp-ignored-in-import.html b/LayoutTests/http/tests/htmlimports/csp-ignored-in-import.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..74cd65cf5cb927e3b5e7bcf0f602e212c2036ceb
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/htmlimports/csp-ignored-in-import.html
|
| @@ -0,0 +1,25 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<link id="havingDirective" rel="import" href="resources/having-csp-directive.html">
|
| +<link id="havingDirectiveOverCors" rel="import" href="http://localhost:8000/htmlimports/resources/cors-csp-blocking.cgi">
|
| +</head>
|
| +<body>
|
| +<pre id="result"></pre>
|
| +<script>
|
| +if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +
|
| +if (window.havingDirective.import.querySelector("#shouldBeImported").import != null)
|
| + result.innerHTML += "PASS\n";
|
| +else
|
| + result.innerHTML += "FAIL: The import should be allowed.\n";
|
| +
|
| +if (window.havingDirectiveOverCors.import.querySelector("#shouldBeImported").import != null)
|
| + result.innerHTML += "PASS\n";
|
| +else
|
| + result.innerHTML += "FAIL: The import should be allowed.\n";
|
| +
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|