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

Unified Diff: LayoutTests/http/tests/htmlimports/csp-import-block-but-self-nested.html

Issue 183883004: Let ContentSecurityPolicy shared between imports and the master. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Adding guardRef()/guardDeref() Created 6 years, 10 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-import-block-but-self-nested.html
diff --git a/LayoutTests/http/tests/htmlimports/csp-import-block-but-self-nested.html b/LayoutTests/http/tests/htmlimports/csp-import-block-but-self-nested.html
index fd23f59dc8165c927229201235095e05c65e224e..cc9f0996c2e3dd2f675b92a1457589bf6beb7011 100644
--- a/LayoutTests/http/tests/htmlimports/csp-import-block-but-self-nested.html
+++ b/LayoutTests/http/tests/htmlimports/csp-import-block-but-self-nested.html
@@ -1,19 +1,10 @@
<!DOCTYPE html>
<html>
<head>
-<script>
-</script>
+<meta http-equiv="Content-Security-Policy" content="script-src 'self'">
<link id="target" rel="import" href="resources/child-having-self-policy.html">
-<script src="/js-test-resources/js-test.js"></script>
</head>
<body>
-<script>
-shouldBe("document.inlineScriptHasRun", "undefined");
-shouldBeTrue("document.externalScriptHasRun");
-shouldBe("document.corsExternalScriptHasRun", "undefined");
-shouldBe("document.evalFromInlineHasRun", "undefined");
-shouldBe("document.evalFromExternalHasRun", "undefined");
-shouldBe("document.evalFromCorsExternalHasRun", "undefined");
-</script>
+<script src="resources/csp-import-block-but-self.js"></script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698