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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/script-src-self-in-srcdoc.html

Issue 150893004: CSP: 'self' should be handled correctly in sandboxes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase 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/security/contentSecurityPolicy/script-src-self-in-srcdoc.html
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/script-src-self-in-srcdoc.html b/LayoutTests/http/tests/security/contentSecurityPolicy/script-src-self-in-srcdoc.html
new file mode 100644
index 0000000000000000000000000000000000000000..55328d898d73925c3a7ea8136fc810a1d1cb7776
--- /dev/null
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/script-src-self-in-srcdoc.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inline' 'self'">
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.dumpChildFramesAsText();
+ }
+ </script>
+</head>
+<body>
+ <iframe srcdoc="
+ <div id='result' text='PASS'>FAIL</div>
+ <script src='http://127.0.0.1:8000/security/contentSecurityPolicy/resources/script.js'></script>
+ "></iframe>
+</body>
+</html>
+

Powered by Google App Engine
This is Rietveld 408576698