Title: [131813] trunk/LayoutTests
Revision
131813
Author
[email protected]
Date
2012-10-18 15:07:06 -0700 (Thu, 18 Oct 2012)

Log Message

Add layout tests for wildcarded hosts in CSP directives.
https://bugs.webkit.org/show_bug.cgi?id=99693

Reviewed by Adam Barth.

Adds four test cases to ensure that wildcarded hosts in Content Security
Policy source expressions function correctly with and without paths,
and with wildcarded ports.

* http/tests/security/contentSecurityPolicy/source-list-parsing-09-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/source-list-parsing-09.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (131812 => 131813)


--- trunk/LayoutTests/ChangeLog	2012-10-18 21:48:32 UTC (rev 131812)
+++ trunk/LayoutTests/ChangeLog	2012-10-18 22:07:06 UTC (rev 131813)
@@ -1,3 +1,17 @@
+2012-10-18  Mike West  <[email protected]>
+
+        Add layout tests for wildcarded hosts in CSP directives.
+        https://bugs.webkit.org/show_bug.cgi?id=99693
+
+        Reviewed by Adam Barth.
+
+        Adds four test cases to ensure that wildcarded hosts in Content Security
+        Policy source expressions function correctly with and without paths,
+        and with wildcarded ports.
+
+        * http/tests/security/contentSecurityPolicy/source-list-parsing-09-expected.txt: Added.
+        * http/tests/security/contentSecurityPolicy/source-list-parsing-09.html: Added.
+
 2012-10-18  Dirk Pranke  <[email protected]>
 
         [chromium] update ML-specific failures

Added: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/source-list-parsing-09-expected.txt (0 => 131813)


--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/source-list-parsing-09-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/source-list-parsing-09-expected.txt	2012-10-18 22:07:06 UTC (rev 131813)
@@ -0,0 +1,23 @@
+Host wildcards should work correctly.
+
+
+
+--------
+Frame: '<!--framePath //<!--frame0-->-->'
+--------
+PASS
+
+--------
+Frame: '<!--framePath //<!--frame1-->-->'
+--------
+PASS
+
+--------
+Frame: '<!--framePath //<!--frame2-->-->'
+--------
+PASS
+
+--------
+Frame: '<!--framePath //<!--frame3-->-->'
+--------
+PASS

Added: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/source-list-parsing-09.html (0 => 131813)


--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/source-list-parsing-09.html	                        (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/source-list-parsing-09.html	2012-10-18 22:07:06 UTC (rev 131813)
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src=''></script>
+<script>
+var tests = [
+    ['yes', 'script-src http://*.0.1:8000', 'resources/script.js'],
+    ['yes', 'script-src http://*.0.1:8000/', 'resources/script.js'],
+    ['yes', 'script-src http://*.0.1:*', 'resources/script.js'],
+    ['yes', 'script-src http://*.0.1:*/', 'resources/script.js'],
+];
+</script>
+</head>
+<body _onload_="test()">
+<p>Host wildcards should work correctly.</p>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to