Title: [271700] trunk/LayoutTests
- Revision
- 271700
- Author
- achristen...@apple.com
- Date
- 2021-01-21 10:40:52 -0800 (Thu, 21 Jan 2021)
Log Message
Add logs to HTTP/0.9 test
https://bugs.webkit.org/show_bug.cgi?id=220776
r271652 fixed default-port-script-blocked.html but caused default-port-plugin-blocked.html to time out.
Add logs to determine what is happening when it times out.
* http/tests/security/http-0.9/default-port-plugin-blocked-expected.txt:
* http/tests/security/http-0.9/default-port-plugin-blocked.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (271699 => 271700)
--- trunk/LayoutTests/ChangeLog 2021-01-21 18:39:58 UTC (rev 271699)
+++ trunk/LayoutTests/ChangeLog 2021-01-21 18:40:52 UTC (rev 271700)
@@ -1,3 +1,14 @@
+2021-01-21 Alex Christensen <achristen...@webkit.org>
+
+ Add logs to HTTP/0.9 test
+ https://bugs.webkit.org/show_bug.cgi?id=220776
+
+ r271652 fixed default-port-script-blocked.html but caused default-port-plugin-blocked.html to time out.
+ Add logs to determine what is happening when it times out.
+
+ * http/tests/security/http-0.9/default-port-plugin-blocked-expected.txt:
+ * http/tests/security/http-0.9/default-port-plugin-blocked.html:
+
2021-01-21 Youenn Fablet <you...@apple.com>
Allow MediaStream and non MediaStream backed videos to play together
Modified: trunk/LayoutTests/http/tests/security/http-0.9/default-port-plugin-blocked-expected.txt (271699 => 271700)
--- trunk/LayoutTests/http/tests/security/http-0.9/default-port-plugin-blocked-expected.txt 2021-01-21 18:39:58 UTC (rev 271699)
+++ trunk/LayoutTests/http/tests/security/http-0.9/default-port-plugin-blocked-expected.txt 2021-01-21 18:40:52 UTC (rev 271700)
@@ -1,4 +1,11 @@
+ALERT: successfully closed one connection
+ALERT: successfully closed one connection
+ALERT: successfully closed one connection
+ALERT: successfully closed one connection
+ALERT: successfully closed one connection
+ALERT: successfully closed one connection
CONSOLE MESSAGE: Sandboxing 'http://127.0.0.1:8000/security/http-0.9/resources/nph-load-plugin-fail.pl' because it is using HTTP/0.9.
+ALERT: iframe loaded successfully
This tests that loading of a plugin is blocked in a HTTP 0.9 response served over port 80. This test PASSED if you see content in the iframe below. Otherwise, it FAILED.
Modified: trunk/LayoutTests/http/tests/security/http-0.9/default-port-plugin-blocked.html (271699 => 271700)
--- trunk/LayoutTests/http/tests/security/http-0.9/default-port-plugin-blocked.html 2021-01-21 18:39:58 UTC (rev 271699)
+++ trunk/LayoutTests/http/tests/security/http-0.9/default-port-plugin-blocked.html 2021-01-21 18:40:52 UTC (rev 271700)
@@ -12,11 +12,17 @@
async function closeConnectionsThenAddFrame() {
for (var i = 0; i < 6; i = i + 1) {
- await fetch('resources/close-connection.php', {mode: 'no-cors'});
+ try {
+ await fetch('resources/close-connection.php', {mode: 'no-cors'});
+ alert("successfully closed one connection");
+ } catch (e) {
+ alert("exception while closing connection " + e);
+ }
}
var iframe = document.createElement('iframe');
iframe.src = ""
- iframe._onload_ = function() { if (window.testRunner) { testRunner.notifyDone() } }
+ iframe._onload_ = function() { alert("iframe loaded successfully"); if (window.testRunner) { testRunner.notifyDone() } }
+ iframe._onerror_ = function() { alert("iframe load failed"); if (window.testRunner) { testRunner.notifyDone() } }
document.body.appendChild(iframe);
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes