Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: LayoutTests/http/tests/htmlimports/csp-not-block-import-in-import.html

Issue 19940002: [HTML Import] Respect Content Security Policy Model (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Mac build failure Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/htmlimports/csp-not-block-import-in-import.html
diff --git a/LayoutTests/http/tests/htmlimports/csp-not-block-import-in-import.html b/LayoutTests/http/tests/htmlimports/csp-not-block-import-in-import.html
new file mode 100644
index 0000000000000000000000000000000000000000..9851e6365e02487c987c7acd4830043141afce0c
--- /dev/null
+++ b/LayoutTests/http/tests/htmlimports/csp-not-block-import-in-import.html
@@ -0,0 +1,19 @@
+<!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)
+ result.innerHTML = "PASS\n";
+else
+ result.innerHTML = "FAIL: The import should be allowed.\n";
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698