Diff
Modified: trunk/LayoutTests/ChangeLog (275560 => 275561)
--- trunk/LayoutTests/ChangeLog 2021-04-06 22:13:40 UTC (rev 275560)
+++ trunk/LayoutTests/ChangeLog 2021-04-06 22:20:18 UTC (rev 275561)
@@ -1,3 +1,27 @@
+2021-04-06 Chris Gambrell <[email protected]>
+
+ [LayoutTests] Convert http/tests/misc convert PHP to Python
+ https://bugs.webkit.org/show_bug.cgi?id=221981
+ <rdar://problem/74399686>
+
+ Reviewed by Jonathan Bedard.
+
+ * http/tests/misc/prefetch-purpose-expected.txt:
+ * http/tests/misc/prefetch-purpose.html:
+ * http/tests/misc/resources/check-query-param.php: Removed.
+ * http/tests/misc/resources/check-query-param.py: Added.
+ * http/tests/misc/resources/prefetch-purpose.php: Removed.
+ * http/tests/misc/resources/prefetch-purpose.py: Added.
+ * http/tests/misc/resources/redirect-to-http-url.php: Removed.
+ * http/tests/misc/resources/redirect-to-http-url.py: Added.
+ * http/tests/misc/submit-get-in-utf16be.html:
+ * http/tests/misc/submit-get-in-utf16le.html:
+ * http/tests/misc/submit-post-in-utf16be.html:
+ * http/tests/misc/submit-post-in-utf16le.html:
+ * http/tests/misc/will-send-request-returns-null-on-redirect-expected.txt:
+ * http/tests/misc/will-send-request-returns-null-on-redirect.html:
+ * platform/wk2/http/tests/misc/will-send-request-returns-null-on-redirect-expected.txt:
+
2021-04-06 Robert Jenner <[email protected]>
[ macOS wk2] media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-drag-is-prevented-over-button.html is a flakey timeout
@@ -810,6 +834,26 @@
2021-04-02 Chris Gambrell <[email protected]>
+ [LayoutTests] Convert http/tests/misc convert PHP to Python
+ https://bugs.webkit.org/show_bug.cgi?id=221981
+ <rdar://problem/74399686>
+
+ Reviewed by Jonathan Bedard.
+
+ * http/tests/misc/prefetch-purpose-expected.txt:
+ * http/tests/misc/prefetch-purpose.html:
+ * http/tests/misc/resources/check-query-param.php: Removed.
+ * http/tests/misc/resources/check-query-param.py: Added.
+ * http/tests/misc/resources/prefetch-purpose.php: Removed.
+ * http/tests/misc/resources/prefetch-purpose.py: Added.
+ * http/tests/misc/resources/redirect-to-http-url.py: Added.
+ * http/tests/misc/submit-get-in-utf16be.html:
+ * http/tests/misc/submit-get-in-utf16le.html:
+ * http/tests/misc/submit-post-in-utf16be.html:
+ * http/tests/misc/submit-post-in-utf16le.html:
+
+2021-04-02 Chris Gambrell <[email protected]>
+
[LayoutTests] Convert http/tests/referrer-policy convert PHP to Python
https://bugs.webkit.org/show_bug.cgi?id=223234
<rdar://problem/75460136>
Modified: trunk/LayoutTests/http/tests/misc/prefetch-purpose-expected.txt (275560 => 275561)
--- trunk/LayoutTests/http/tests/misc/prefetch-purpose-expected.txt 2021-04-06 22:13:40 UTC (rev 275560)
+++ trunk/LayoutTests/http/tests/misc/prefetch-purpose-expected.txt 2021-04-06 22:20:18 UTC (rev 275561)
@@ -1,7 +1,7 @@
-prefetch-purpose.php has MIME type text/html
-prefetch-purpose.php has MIME type text/html
+prefetch-purpose.py has MIME type text/html
+prefetch-purpose.py has MIME type text/html
The cookie was set!
Purpose: prefetch
-This test verifies that prefetches are sent with the HTTP request header Purpose: prefetch. To do this, the root page has a prefetch link targetting this subresource which contains a PHP script (resources/prefetch-purpose.php). That initial prefetch of this resource sets a cookie. Later, the root page sets window.location to target this script, which verifies the presence of the cookie, and generates the happy test output that you hopefully see right now.
+This test verifies that prefetches are sent with the HTTP request header Purpose: prefetch. To do this, the root page has a prefetch link targetting this subresource which contains a PHP script (resources/prefetch-purpose.py). That initial prefetch of this resource sets a cookie. Later, the root page sets window.location to target this script, which verifies the presence of the cookie, and generates the happy test output that you hopefully see right now.
Modified: trunk/LayoutTests/http/tests/misc/prefetch-purpose.html (275560 => 275561)
--- trunk/LayoutTests/http/tests/misc/prefetch-purpose.html 2021-04-06 22:13:40 UTC (rev 275560)
+++ trunk/LayoutTests/http/tests/misc/prefetch-purpose.html 2021-04-06 22:20:18 UTC (rev 275561)
@@ -3,7 +3,7 @@
<script>
function finishUp() {
- window.location = 'resources/prefetch-purpose.php';
+ window.location = 'resources/prefetch-purpose.py';
}
if (window.testRunner) {
@@ -12,9 +12,9 @@
testRunner.dumpResourceResponseMIMETypes();
}
</script>
-<link href="" rel="prefetch" _onload_="finishUp()">
+<link href="" rel="prefetch" _onload_="finishUp()">
</head>
<body>
-<p>Nothing to see here, this page should replace itself with resources/prefetch-purpose.php almost instantly.
+<p>Nothing to see here, this page should replace itself with resources/prefetch-purpose.py almost instantly.
</body>
</html>
Deleted: trunk/LayoutTests/http/tests/misc/resources/check-query-param.php (275560 => 275561)
--- trunk/LayoutTests/http/tests/misc/resources/check-query-param.php 2021-04-06 22:13:40 UTC (rev 275560)
+++ trunk/LayoutTests/http/tests/misc/resources/check-query-param.php 2021-04-06 22:20:18 UTC (rev 275561)
@@ -1,31 +0,0 @@
-<?php
-header("Content-Type: text/html; charset=UTF-8");
-?>
-<html>
-<head>
-<script>
-
-function runTest()
-{
- var r = document.getElementById('result');
- var o = document.getElementById('output').firstChild;
- if (o.nodeValue == '\u2122\u5341')
- r.innerHTML = "SUCCESS: query param is converted to UTF-8";
- else
- r.innerHTML = "FAILURE: query param is not converted to UTF-8. value=" +
- o.nodeValue;
-
- if (window.testRunner)
- testRunner.notifyDone();
-}
-
-</script>
-</head>
-<body _onload_="runTest()">
-<p>
-This test is for <a href="" 21635</a>. The query parameter in non-UTF-8 Unicode pages (UTF-7,16,32) should be converted to UTF-8 before a request is made to a server.
-</p>
-<div style='display: none;' id='output'><?php echo $_REQUEST{'q'}; ?></div>
-<div id="result"></div>
-</body>
-</html>
Added: trunk/LayoutTests/http/tests/misc/resources/check-query-param.py (0 => 275561)
--- trunk/LayoutTests/http/tests/misc/resources/check-query-param.py (rev 0)
+++ trunk/LayoutTests/http/tests/misc/resources/check-query-param.py 2021-04-06 22:20:18 UTC (rev 275561)
@@ -0,0 +1,61 @@
+#!/usr/bin/env python3
+
+import cgi
+import os
+import sys
+from urllib.parse import parse_qs
+
+file = __file__.split(':/cygwin')[-1]
+http_root = os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(file))))
+sys.path.insert(0, http_root)
+
+from resources.portabilityLayer import get_cookies
+
+request_method = os.environ.get('REQUEST_METHOD', '')
+query = parse_qs(os.environ.get('QUERY_STRING', ''), keep_blank_values=True)
+
+request = {}
+if request_method == 'POST':
+ form = cgi.FieldStorage()
+ for key in form.keys():
+ request.update({ key: form.getvalue(key) })
+else:
+ query = parse_qs(os.environ.get('QUERY_STRING', ''), keep_blank_values=True)
+ for key in query.keys():
+ request.update({ key: query[key][0] })
+
+request.update(get_cookies())
+
+sys.stdout.write('Content-Type: text/html; charset=UTF-8\r\n\r\n')
+
+print('''<html>
+<head>
+<script>
+
+function runTest()
+{
+ var r = document.getElementById('result');
+ var o = document.getElementById('output').firstChild;
+ if (o.nodeValue == \'\u2122\u5341\')
+ r.innerHTML = "SUCCESS: query param is converted to UTF-8";
+ else
+ r.innerHTML = "FAILURE: query param is not converted to UTF-8. value=" +
+ o.nodeValue;
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+}
+
+</script>
+</head>
+<body _onload_="runTest()">
+<p>
+This test is for <a href="" 21635</a>. The query parameter in non-UTF-8 Unicode pages (UTF-7,16,32) should be converted to UTF-8 before a request is made to a server.
+</p>''')
+
+sys.stdout.write('<div style=\'display: none;\' id=\'output\'>{}'.format(request.get('q', '')))
+
+print('''</div>
+<div id="result"></div>
+</body>
+</html>''')
\ No newline at end of file
Property changes on: trunk/LayoutTests/http/tests/misc/resources/check-query-param.py
___________________________________________________________________
Added: svn:executable
+*
\ No newline at end of property
Deleted: trunk/LayoutTests/http/tests/misc/resources/prefetch-purpose.php (275560 => 275561)
--- trunk/LayoutTests/http/tests/misc/resources/prefetch-purpose.php 2021-04-06 22:13:40 UTC (rev 275560)
+++ trunk/LayoutTests/http/tests/misc/resources/prefetch-purpose.php 2021-04-06 22:20:18 UTC (rev 275561)
@@ -1,24 +0,0 @@
-<?php setcookie("Purpose", $_SERVER["HTTP_PURPOSE"]);
-
-if (isset($_COOKIE['Purpose'])) {
- setcookie("Purpose", "", time() - 3600);
- echo "<h1>The cookie was set!</h1>";
- echo "<p>Purpose: ";
- echo $_COOKIE['Purpose'];
-} else {
- echo "<h1>BAD BROWSER NO COOKIE</h1>";
-}
-?>
-
-<script>
-testRunner.notifyDone();
-</script>
-
-<p>This test verifies that prefetches are sent with the HTTP request header
-<b>Purpose: prefetch</b>. To do this, the root page has a prefetch
-link targetting this subresource which contains a PHP script
-(resources/prefetch-purpose.php). That initial prefetch of this
-resource sets a cookie. Later, the root page sets window.location to
-target this script, which verifies the presence of the cookie, and
-generates the happy test output that you hopefully see right now.
-
Added: trunk/LayoutTests/http/tests/misc/resources/prefetch-purpose.py (0 => 275561)
--- trunk/LayoutTests/http/tests/misc/resources/prefetch-purpose.py (rev 0)
+++ trunk/LayoutTests/http/tests/misc/resources/prefetch-purpose.py 2021-04-06 22:20:18 UTC (rev 275561)
@@ -0,0 +1,41 @@
+#!/usr/bin/env python3
+
+import os
+import sys
+from datetime import datetime, timedelta
+
+file = __file__.split(':/cygwin')[-1]
+http_root = os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(file))))
+sys.path.insert(0, http_root)
+
+from resources.portabilityLayer import get_cookies
+
+sys.stdout.write(
+ 'Set-Cookie: Purpose={}\r\n'
+ 'Content-Type: text/html\r\n'.format(os.environ.get('HTTP_PURPOSE', 'deleted'))
+)
+
+cookies = get_cookies()
+purpose = cookies.get('Purpose', None)
+
+if purpose is not None:
+ expires= datetime.utcnow() - timedelta(seconds=3600)
+ sys.stdout.write(
+ 'Set-Cookie: Purpose=deleted, expires={} GMT; Max-Age=0\r\n\r\n'
+ '<h1>The cookie was set!</h1>'
+ '<p>Purpose: {}'.format(expires.strftime('%a, %d-%b-%Y %H:%M:%S'), purpose)
+ )
+else:
+ sys.stdout.write('<h1>BAD BROWSER NO COOKIE</h1>')
+
+print('''<script>
+testRunner.notifyDone();
+</script>
+
+<p>This test verifies that prefetches are sent with the HTTP request header
+<b>Purpose: prefetch</b>. To do this, the root page has a prefetch
+link targetting this subresource which contains a PHP script
+(resources/prefetch-purpose.py). That initial prefetch of this
+resource sets a cookie. Later, the root page sets window.location to
+target this script, which verifies the presence of the cookie, and
+generates the happy test output that you hopefully see right now.''')
\ No newline at end of file
Property changes on: trunk/LayoutTests/http/tests/misc/resources/prefetch-purpose.py
___________________________________________________________________
Added: svn:executable
+*
\ No newline at end of property
Deleted: trunk/LayoutTests/http/tests/misc/resources/redirect-to-http-url.php (275560 => 275561)
--- trunk/LayoutTests/http/tests/misc/resources/redirect-to-http-url.php 2021-04-06 22:13:40 UTC (rev 275560)
+++ trunk/LayoutTests/http/tests/misc/resources/redirect-to-http-url.php 2021-04-06 22:20:18 UTC (rev 275561)
@@ -1,4 +0,0 @@
-<?php
- header('Location: http://www.example.com/');
- header('HTTP/1.0 302 Found');
-?>
Added: trunk/LayoutTests/http/tests/misc/resources/redirect-to-http-url.py (0 => 275561)
--- trunk/LayoutTests/http/tests/misc/resources/redirect-to-http-url.py (rev 0)
+++ trunk/LayoutTests/http/tests/misc/resources/redirect-to-http-url.py 2021-04-06 22:20:18 UTC (rev 275561)
@@ -0,0 +1,9 @@
+#!/usr/bin/env python3
+
+import sys
+
+sys.stdout.write(
+ 'Location: http://www.example.com/\r\n'
+ 'status: 302\r\n'
+ 'Content-Type: text/html\r\n\r\n'
+)
\ No newline at end of file
Property changes on: trunk/LayoutTests/http/tests/misc/resources/redirect-to-http-url.py
___________________________________________________________________
Added: svn:executable
+*
\ No newline at end of property
Modified: trunk/LayoutTests/http/tests/misc/submit-get-in-utf16be.html (275560 => 275561)
--- trunk/LayoutTests/http/tests/misc/submit-get-in-utf16be.html 2021-04-06 22:13:40 UTC (rev 275560)
+++ trunk/LayoutTests/http/tests/misc/submit-get-in-utf16be.html 2021-04-06 22:20:18 UTC (rev 275561)
@@ -14,7 +14,7 @@
��<��/��s��c��r��i��p��t��>��
��<��/��h��e��a��d��>��
��<��b��o��d��y�� ��o��n��l��o��a��d��=��"��c��l��i��c��k��f��(��)��"��>��
-��<��f��o��r��m�� ��n��a��m��e��=��"��f��"�� ��a��c��t��i��o��n��=��"��r��e��s��o��u��r��c��e��s��/��c��h��e��c��k��-��q��u��e��r��y��-��p��a��r��a��m��.��p��h��p��"�� ��m��e��t��h��o��d��=��"��g��e��t��"��>��
+��<��f��o��r��m�� ��n��a��m��e��=��"��f��"�� ��a��c��t��i��o��n��=��"��r��e��s��o��u��r��c��e��s��/��c��h��e��c��k��-��q��u��e��r��y��-��p��a��r��a��m��.��p��y��"�� ��m��e��t��h��o��d��=��"��g��e��t��"��>��
��<��i��n��p��u��t�� ��n��a��m��e��=��"��q��"�� ��t��y��p��e��=��"��t��e��x��t��"�� ��v��a��l��u��e��=��"��&��#��x��2��1��2��2��;��&��#��x��5��3��4��1��;��"��>��
��<��/��f��o��r��m��>��
��<��/��b��o��d��y��>��
Modified: trunk/LayoutTests/http/tests/misc/submit-get-in-utf16le.html (275560 => 275561)
--- trunk/LayoutTests/http/tests/misc/submit-get-in-utf16le.html 2021-04-06 22:13:40 UTC (rev 275560)
+++ trunk/LayoutTests/http/tests/misc/submit-get-in-utf16le.html 2021-04-06 22:20:18 UTC (rev 275561)
@@ -14,7 +14,7 @@
��<��/��s��c��r��i��p��t��>��
��<��/��h��e��a��d��>��
��<��b��o��d��y�� ��o��n��l��o��a��d��=��"��c��l��i��c��k��f��(��)��"��>��
-��<��f��o��r��m�� ��n��a��m��e��=��"��f��"�� ��a��c��t��i��o��n��=��"��r��e��s��o��u��r��c��e��s��/��c��h��e��c��k��-��q��u��e��r��y��-��p��a��r��a��m��.��p��h��p��"�� ��m��e��t��h��o��d��=��"��g��e��t��"��>��
+��<��f��o��r��m�� ��n��a��m��e��=��"��f��"�� ��a��c��t��i��o��n��=��"��r��e��s��o��u��r��c��e��s��/��c��h��e��c��k��-��q��u��e��r��y��-��p��a��r��a��m��.��p��y��"�� ��m��e��t��h��o��d��=��"��g��e��t��"��>��
��<��i��n��p��u��t�� ��n��a��m��e��=��"��q��"�� ��t��y��p��e��=��"��t��e��x��t��"�� ��v��a��l��u��e��=��"��&��#��x��2��1��2��2��;��&��#��x��5��3��4��1��;��"��>��
��<��/��f��o��r��m��>��
��<��/��b��o��d��y��>��
Modified: trunk/LayoutTests/http/tests/misc/submit-post-in-utf16be.html (275560 => 275561)
--- trunk/LayoutTests/http/tests/misc/submit-post-in-utf16be.html 2021-04-06 22:13:40 UTC (rev 275560)
+++ trunk/LayoutTests/http/tests/misc/submit-post-in-utf16be.html 2021-04-06 22:20:18 UTC (rev 275561)
@@ -12,7 +12,7 @@
��<��/��s��c��r��i��p��t��>��
��<��/��h��e��a��d��>��
��<��b��o��d��y�� ��o��n��l��o��a��d��=��"��c��l��i��c��k��f��(��)��"��>��
-��<��f��o��r��m�� ��n��a��m��e��=��"��f��"�� ��a��c��t��i��o��n��=��"��r��e��s��o��u��r��c��e��s��/��c��h��e��c��k��-��q��u��e��r��y��-��p��a��r��a��m��.��p��h��p��"�� ��m��e��t��h��o��d��=��"��p��o��s��t��"��>��
+��<��f��o��r��m�� ��n��a��m��e��=��"��f��"�� ��a��c��t��i��o��n��=��"��r��e��s��o��u��r��c��e��s��/��c��h��e��c��k��-��q��u��e��r��y��-��p��a��r��a��m��.��p��y��"�� ��m��e��t��h��o��d��=��"��p��o��s��t��"��>��
��<��i��n��p��u��t�� ��n��a��m��e��=��"��q��"�� ��t��y��p��e��=��"��t��e��x��t��"�� ��v��a��l��u��e��=��"��&��#��x��2��1��2��2��;��&��#��x��5��3��4��1��;��"��>��
��<��/��f��o��r��m��>��
��<��/��b��o��d��y��>��
Modified: trunk/LayoutTests/http/tests/misc/submit-post-in-utf16le.html (275560 => 275561)
--- trunk/LayoutTests/http/tests/misc/submit-post-in-utf16le.html 2021-04-06 22:13:40 UTC (rev 275560)
+++ trunk/LayoutTests/http/tests/misc/submit-post-in-utf16le.html 2021-04-06 22:20:18 UTC (rev 275561)
@@ -12,7 +12,7 @@
��<��/��s��c��r��i��p��t��>��
��<��/��h��e��a��d��>��
��<��b��o��d��y�� ��o��n��l��o��a��d��=��"��c��l��i��c��k��f��(��)��"��>��
-��<��f��o��r��m�� ��n��a��m��e��=��"��f��"�� ��a��c��t��i��o��n��=��"��r��e��s��o��u��r��c��e��s��/��c��h��e��c��k��-��q��u��e��r��y��-��p��a��r��a��m��.��p��h��p��"�� ��m��e��t��h��o��d��=��"��p��o��s��t��"��>��
+��<��f��o��r��m�� ��n��a��m��e��=��"��f��"�� ��a��c��t��i��o��n��=��"��r��e��s��o��u��r��c��e��s��/��c��h��e��c��k��-��q��u��e��r��y��-��p��a��r��a��m��.��p��y��"�� ��m��e��t��h��o��d��=��"��p��o��s��t��"��>��
��<��i��n��p��u��t�� ��n��a��m��e��=��"��q��"�� ��t��y��p��e��=��"��t��e��x��t��"�� ��v��a��l��u��e��=��"��&��#��x��2��1��2��2��;��&��#��x��5��3��4��1��;��"��>��
��<��/��f��o��r��m��>��
��<��/��b��o��d��y��>��
Modified: trunk/LayoutTests/http/tests/misc/will-send-request-returns-null-on-redirect-expected.txt (275560 => 275561)
--- trunk/LayoutTests/http/tests/misc/will-send-request-returns-null-on-redirect-expected.txt 2021-04-06 22:13:40 UTC (rev 275560)
+++ trunk/LayoutTests/http/tests/misc/will-send-request-returns-null-on-redirect-expected.txt 2021-04-06 22:20:18 UTC (rev 275561)
@@ -1,8 +1,8 @@
-http://127.0.0.1:8000/misc/resources/redirect-to-http-url.php - willSendRequest <NSURLRequest URL http://127.0.0.1:8000/misc/resources/redirect-to-http-url.php, main document URL http://127.0.0.1:8000/misc/will-send-request-returns-null-on-redirect.html, http method GET> redirectResponse (null)
+http://127.0.0.1:8000/misc/resources/redirect-to-http-url.py - willSendRequest <NSURLRequest URL http://127.0.0.1:8000/misc/resources/redirect-to-http-url.py, main document URL http://127.0.0.1:8000/misc/will-send-request-returns-null-on-redirect.html, http method GET> redirectResponse (null)
http://127.0.0.1:8000/misc/will-send-request-returns-null-on-redirect.html - didFinishLoading
-http://127.0.0.1:8000/misc/resources/redirect-to-http-url.php - willSendRequest <NSURLRequest URL http://www.example.com/, main document URL http://127.0.0.1:8000/misc/will-send-request-returns-null-on-redirect.html, http method GET> redirectResponse <NSURLResponse http://127.0.0.1:8000/misc/resources/redirect-to-http-url.php, http status code 302>
+http://127.0.0.1:8000/misc/resources/redirect-to-http-url.py - willSendRequest <NSURLRequest URL http://www.example.com/, main document URL http://127.0.0.1:8000/misc/will-send-request-returns-null-on-redirect.html, http method GET> redirectResponse <NSURLResponse http://127.0.0.1:8000/misc/resources/redirect-to-http-url.py, http status code 302>
Returning null for this redirect
-http://127.0.0.1:8000/misc/resources/redirect-to-http-url.php - didFailLoadingWithError: <NSError domain NSURLErrorDomain, code -999>
+http://127.0.0.1:8000/misc/resources/redirect-to-http-url.py - didFailLoadingWithError: <NSError domain NSURLErrorDomain, code -999>
https://bugs.webkit.org/show_bug.cgi?id=27595
This test checks to make sure that things behave as expected when the resource load delegate returns null in response to willSendRequest.
Modified: trunk/LayoutTests/http/tests/misc/will-send-request-returns-null-on-redirect.html (275560 => 275561)
--- trunk/LayoutTests/http/tests/misc/will-send-request-returns-null-on-redirect.html 2021-04-06 22:13:40 UTC (rev 275560)
+++ trunk/LayoutTests/http/tests/misc/will-send-request-returns-null-on-redirect.html 2021-04-06 22:20:18 UTC (rev 275561)
@@ -13,6 +13,6 @@
<body>
https://bugs.webkit.org/show_bug.cgi?id=27595<br>
This test checks to make sure that things behave as expected when the resource load delegate returns null in response to willSendRequest.<br>
-<iframe src=""
+<iframe src=""
</body>
</html>
Modified: trunk/LayoutTests/platform/wk2/http/tests/misc/will-send-request-returns-null-on-redirect-expected.txt (275560 => 275561)
--- trunk/LayoutTests/platform/wk2/http/tests/misc/will-send-request-returns-null-on-redirect-expected.txt 2021-04-06 22:13:40 UTC (rev 275560)
+++ trunk/LayoutTests/platform/wk2/http/tests/misc/will-send-request-returns-null-on-redirect-expected.txt 2021-04-06 22:20:18 UTC (rev 275561)
@@ -1,8 +1,8 @@
http://127.0.0.1:8000/misc/will-send-request-returns-null-on-redirect.html - didFinishLoading
-http://127.0.0.1:8000/misc/resources/redirect-to-http-url.php - willSendRequest <NSURLRequest URL http://127.0.0.1:8000/misc/resources/redirect-to-http-url.php, main document URL http://127.0.0.1:8000/misc/will-send-request-returns-null-on-redirect.html, http method GET> redirectResponse (null)
-http://127.0.0.1:8000/misc/resources/redirect-to-http-url.php - willSendRequest <NSURLRequest URL http://www.example.com/, main document URL http://127.0.0.1:8000/misc/will-send-request-returns-null-on-redirect.html, http method GET> redirectResponse <NSURLResponse http://127.0.0.1:8000/misc/resources/redirect-to-http-url.php, http status code 302>
+http://127.0.0.1:8000/misc/resources/redirect-to-http-url.py - willSendRequest <NSURLRequest URL http://127.0.0.1:8000/misc/resources/redirect-to-http-url.py, main document URL http://127.0.0.1:8000/misc/will-send-request-returns-null-on-redirect.html, http method GET> redirectResponse (null)
+http://127.0.0.1:8000/misc/resources/redirect-to-http-url.py - willSendRequest <NSURLRequest URL http://www.example.com/, main document URL http://127.0.0.1:8000/misc/will-send-request-returns-null-on-redirect.html, http method GET> redirectResponse <NSURLResponse http://127.0.0.1:8000/misc/resources/redirect-to-http-url.py, http status code 302>
Returning null for this redirect
-http://127.0.0.1:8000/misc/resources/redirect-to-http-url.php - didFailLoadingWithError: <NSError domain NSURLErrorDomain, code -999>
+http://127.0.0.1:8000/misc/resources/redirect-to-http-url.py - didFailLoadingWithError: <NSError domain NSURLErrorDomain, code -999>
https://bugs.webkit.org/show_bug.cgi?id=27595
This test checks to make sure that things behave as expected when the resource load delegate returns null in response to willSendRequest.