Chromium Code Reviews| Index: LayoutTests/http/tests/htmlimports/csp-block-import-in-import.html |
| diff --git a/LayoutTests/http/tests/htmlimports/csp-block-import-in-import.html b/LayoutTests/http/tests/htmlimports/csp-block-import-in-import.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7142d8939b65f243dd1006db214dd4f1164501d1 |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/htmlimports/csp-block-import-in-import.html |
| @@ -0,0 +1,18 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| +<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'"> |
| +<link id="target" rel="import" href="resources/importing-cors.html"> |
| +</head> |
| +<body> |
| +<pre id="result"></pre> |
| +<script> |
| +if (window.testRunner) |
| + testRunner.dumpAsText(); |
| +if (window.target.import.querySelector('#cors').import == null) |
|
Mike West
2013/07/22 14:39:42
Forgive the noob question: do HTML Imports load sy
|
| + result.innerHTML = "PASS\n"; |
| +else |
| + result.innerHTML = "FAIL: The import should be blocked.\n"; |
| +</script> |
| +</body> |
| +</html> |