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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/suborigin-invalid-names.html

Issue 27073003: CSP Suborigins Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address abarth's comments Created 6 years, 2 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/suborigin-invalid-names.html
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/suborigin-invalid-names.html b/LayoutTests/http/tests/security/contentSecurityPolicy/suborigin-invalid-names.html
new file mode 100644
index 0000000000000000000000000000000000000000..4dc22b25efa70c73c0f6ec9d7b8c9d7914d02985
--- /dev/null
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/suborigin-invalid-names.html
@@ -0,0 +1,14 @@
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+<iframe src="resources/suborigin.php?suborigin="></iframe>
+<iframe src="resources/suborigin.php?suborigin='foobar'"></iframe>
+<iframe src="resources/suborigin.php?suborigin='foobar"></iframe>
+<iframe src="resources/suborigin.php?suborigin=foobar'"></iframe>
+<iframe src="resources/suborigin.php?suborigin=foo'bar"></iframe>
+<iframe src="resources/suborigin.php?suborigin=foob@r"></iframe>
+<iframe src="resources/suborigin.php?suborigin=foo bar"></iframe>
+<p>
+There should be 7 console errors for this test to pass.
+</p>

Powered by Google App Engine
This is Rietveld 408576698