Index: LayoutTests/http/tests/htmlimports/csp-block-import.html |
diff --git a/LayoutTests/http/tests/htmlimports/csp-block-import.html b/LayoutTests/http/tests/htmlimports/csp-block-import.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..21ed78bdb17615673e1c859c648bb2b6ee346987 |
--- /dev/null |
+++ b/LayoutTests/http/tests/htmlimports/csp-block-import.html |
@@ -0,0 +1,19 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inline'"> |
+<link id="target" rel="import" href="resources/hello.html"> |
+</head> |
+<body> |
+<pre id="result"></pre> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+if (window.target.import == null) |
+ result.innerHTML = "PASS\n"; |
+else |
+ result.innerHTML = "FAIL: The import should be blocked.\n"; |
+</script> |
+</body> |
+</html> |