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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/script-src-self-in-sandbox.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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/script-src-self-in-sandbox-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/contentSecurityPolicy/script-src-self-in-sandbox.html
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/script-src-self-in-sandbox.html b/LayoutTests/http/tests/security/contentSecurityPolicy/script-src-self-in-sandbox.html
new file mode 100644
index 0000000000000000000000000000000000000000..db8b621ca06e79a9f17a2f3872f4157a2fc2d7e7
--- /dev/null
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/script-src-self-in-sandbox.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.dumpChildFramesAsText();
+ }
+ </script>
+</head>
+<body>
+ <iframe sandbox="allow-scripts" src="http://127.0.0.1:8000/security/contentSecurityPolicy/resources/echo-script-src.pl?should_run=yes&q=http://127.0.0.1:8000/security/contentSecurityPolicy/resources/script.js&csp=script-src%20'self'"></iframe>
+</body>
+</html>
+
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/script-src-self-in-sandbox-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698