Title: [208551] trunk/LayoutTests
Revision
208551
Author
[email protected]
Date
2016-11-10 10:56:55 -0800 (Thu, 10 Nov 2016)

Log Message

Add test that image load over default port using HTTP 0.9 protocol is blocked when page is
served with a different HTTP version
https://bugs.webkit.org/show_bug.cgi?id=164552

Reviewed by Brent Fulgham.

* http/tests/security/http-0.9/image-default-port-blocked-expected.txt: Added.
* http/tests/security/http-0.9/image-default-port-blocked.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (208550 => 208551)


--- trunk/LayoutTests/ChangeLog	2016-11-10 18:54:37 UTC (rev 208550)
+++ trunk/LayoutTests/ChangeLog	2016-11-10 18:56:55 UTC (rev 208551)
@@ -1,5 +1,16 @@
 2016-11-10  Daniel Bates  <[email protected]>
 
+        Add test that image load over default port using HTTP 0.9 protocol is blocked when page is
+        served with a different HTTP version
+        https://bugs.webkit.org/show_bug.cgi?id=164552
+
+        Reviewed by Brent Fulgham.
+
+        * http/tests/security/http-0.9/image-default-port-blocked-expected.txt: Added.
+        * http/tests/security/http-0.9/image-default-port-blocked.html: Added.
+
+2016-11-10  Daniel Bates  <[email protected]>
+
         REGRESSION (r195004): Scripts and plugins blocked for subsequent loads in same WebContent
         process after receiving HTTP 0.9 response
         https://bugs.webkit.org/show_bug.cgi?id=164387

Added: trunk/LayoutTests/http/tests/security/http-0.9/image-default-port-blocked-expected.txt (0 => 208551)


--- trunk/LayoutTests/http/tests/security/http-0.9/image-default-port-blocked-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/http/tests/security/http-0.9/image-default-port-blocked-expected.txt	2016-11-10 18:56:55 UTC (rev 208551)
@@ -0,0 +1,3 @@
+CONSOLE MESSAGE: Cancelled resource load from 'http://127.0.0.1:8000/security/http-0.9/resources/nph-image.pl' because it is using HTTP/0.9 and the document was loaded with a different HTTP version.
+ALERT: PASS
+

Added: trunk/LayoutTests/http/tests/security/http-0.9/image-default-port-blocked.html (0 => 208551)


--- trunk/LayoutTests/http/tests/security/http-0.9/image-default-port-blocked.html	                        (rev 0)
+++ trunk/LayoutTests/http/tests/security/http-0.9/image-default-port-blocked.html	2016-11-10 18:56:55 UTC (rev 208551)
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    if (window.internals)
+        internals.registerDefaultPortForProtocol(8000, "http");
+}
+</script>
+</head>
+<body>
+<img src="" _onload_="alert('FAIL')" _onerror_="alert('PASS')">
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to