Diff
Modified: trunk/LayoutTests/ChangeLog (250569 => 250570)
--- trunk/LayoutTests/ChangeLog 2019-10-01 18:24:52 UTC (rev 250569)
+++ trunk/LayoutTests/ChangeLog 2019-10-01 18:51:06 UTC (rev 250570)
@@ -1,3 +1,16 @@
+2019-10-01 Rob Buis <[email protected]>
+
+ [Mac] Layout Test imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location.any.html fails
+ https://bugs.webkit.org/show_bug.cgi?id=202350
+
+ Reviewed by Alex Christensen.
+
+ Remove expectation for non-existing tests.
+
+ * platform/gtk/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-expected.txt: Removed.
+ * platform/gtk/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-worker-expected.txt: Removed.
+ * platform/wpe/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-worker-expected.txt: Removed.
+
2019-10-01 Andres Gonzalez <[email protected]>
Support accessibility for <figure> element on iOS.
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (250569 => 250570)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2019-10-01 18:24:52 UTC (rev 250569)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2019-10-01 18:51:06 UTC (rev 250570)
@@ -1,3 +1,18 @@
+2019-10-01 Rob Buis <[email protected]>
+
+ [Mac] Layout Test imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location.any.html fails
+ https://bugs.webkit.org/show_bug.cgi?id=202350
+
+ Reviewed by Alex Christensen.
+
+ Update improved test results.
+
+ * web-platform-tests/fetch/api/redirect/redirect-empty-location.any-expected.txt:
+ * web-platform-tests/fetch/api/redirect/redirect-empty-location.any.worker-expected.txt:
+ * web-platform-tests/fetch/api/redirect/redirect-location-expected.txt: Removed.
+ * web-platform-tests/fetch/api/redirect/redirect-location.any-expected.txt:
+ * web-platform-tests/fetch/api/redirect/redirect-location.any.worker-expected.txt:
+
2019-10-01 Antti Koivisto <[email protected]>
Import WPT tests for CSS Shadow Parts
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-empty-location.any-expected.txt (250569 => 250570)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-empty-location.any-expected.txt 2019-10-01 18:24:52 UTC (rev 250569)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-empty-location.any-expected.txt 2019-10-01 18:51:06 UTC (rev 250570)
@@ -1,4 +1,4 @@
FAIL redirect response with empty Location, follow mode assert_unreached: Should have rejected: undefined Reached unreachable code
-FAIL redirect response with empty Location, manual mode assert_equals: expected "opaqueredirect" but got "basic"
+PASS redirect response with empty Location, manual mode
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-empty-location.any.worker-expected.txt (250569 => 250570)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-empty-location.any.worker-expected.txt 2019-10-01 18:24:52 UTC (rev 250569)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-empty-location.any.worker-expected.txt 2019-10-01 18:51:06 UTC (rev 250570)
@@ -1,4 +1,4 @@
FAIL redirect response with empty Location, follow mode assert_unreached: Should have rejected: undefined Reached unreachable code
-FAIL redirect response with empty Location, manual mode assert_equals: expected "opaqueredirect" but got "basic"
+PASS redirect response with empty Location, manual mode
Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-expected.txt (250569 => 250570)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-expected.txt 2019-10-01 18:24:52 UTC (rev 250569)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-expected.txt 2019-10-01 18:51:06 UTC (rev 250570)
@@ -1,52 +0,0 @@
-CONSOLE MESSAGE: Cross-origin redirection to invalidurl: denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Fetch API cannot load http://localhost:8800/fetch/api/resources/redirect.py?redirect_status=301&location=invalidurl%3A due to access control checks.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Fetch API cannot load http://localhost:8800/fetch/api/resources/redirect.py?redirect_status=301&location=data%3A%2Cdata%2520url due to access control checks.
-CONSOLE MESSAGE: Cross-origin redirection to invalidurl: denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Fetch API cannot load http://localhost:8800/fetch/api/resources/redirect.py?redirect_status=302&location=invalidurl%3A due to access control checks.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Fetch API cannot load http://localhost:8800/fetch/api/resources/redirect.py?redirect_status=302&location=data%3A%2Cdata%2520url due to access control checks.
-CONSOLE MESSAGE: Cross-origin redirection to invalidurl: denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Fetch API cannot load http://localhost:8800/fetch/api/resources/redirect.py?redirect_status=303&location=invalidurl%3A due to access control checks.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Fetch API cannot load http://localhost:8800/fetch/api/resources/redirect.py?redirect_status=303&location=data%3A%2Cdata%2520url due to access control checks.
-CONSOLE MESSAGE: Cross-origin redirection to invalidurl: denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Fetch API cannot load http://localhost:8800/fetch/api/resources/redirect.py?redirect_status=307&location=invalidurl%3A due to access control checks.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Fetch API cannot load http://localhost:8800/fetch/api/resources/redirect.py?redirect_status=307&location=data%3A%2Cdata%2520url due to access control checks.
-CONSOLE MESSAGE: Cross-origin redirection to invalidurl: denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Fetch API cannot load http://localhost:8800/fetch/api/resources/redirect.py?redirect_status=308&location=invalidurl%3A due to access control checks.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Fetch API cannot load http://localhost:8800/fetch/api/resources/redirect.py?redirect_status=308&location=data%3A%2Cdata%2520url due to access control checks.
-
-PASS Redirect 301 in "follow" mode without location
-FAIL Redirect 301 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 301
-PASS Redirect 301 in "follow" mode with invalid location
-PASS Redirect 301 in "manual" mode with invalid location
-PASS Redirect 301 in "follow" mode with data location
-PASS Redirect 301 in "manual" mode with data location
-PASS Redirect 302 in "follow" mode without location
-FAIL Redirect 302 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 302
-PASS Redirect 302 in "follow" mode with invalid location
-PASS Redirect 302 in "manual" mode with invalid location
-PASS Redirect 302 in "follow" mode with data location
-PASS Redirect 302 in "manual" mode with data location
-PASS Redirect 303 in "follow" mode without location
-FAIL Redirect 303 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 303
-PASS Redirect 303 in "follow" mode with invalid location
-PASS Redirect 303 in "manual" mode with invalid location
-PASS Redirect 303 in "follow" mode with data location
-PASS Redirect 303 in "manual" mode with data location
-PASS Redirect 307 in "follow" mode without location
-FAIL Redirect 307 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 307
-PASS Redirect 307 in "follow" mode with invalid location
-PASS Redirect 307 in "manual" mode with invalid location
-PASS Redirect 307 in "follow" mode with data location
-PASS Redirect 307 in "manual" mode with data location
-PASS Redirect 308 in "follow" mode without location
-FAIL Redirect 308 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 308
-PASS Redirect 308 in "follow" mode with invalid location
-PASS Redirect 308 in "manual" mode with invalid location
-PASS Redirect 308 in "follow" mode with data location
-PASS Redirect 308 in "manual" mode with data location
-
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location.any-expected.txt (250569 => 250570)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location.any-expected.txt 2019-10-01 18:24:52 UTC (rev 250569)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location.any-expected.txt 2019-10-01 18:51:06 UTC (rev 250570)
@@ -20,31 +20,31 @@
CONSOLE MESSAGE: Fetch API cannot load http://localhost:8800/fetch/api/resources/redirect.py?redirect_status=308&location=data%3A%2Cdata%2520url due to access control checks.
PASS Redirect 301 in "follow" mode without location
-FAIL Redirect 301 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 301
+PASS Redirect 301 in "manual" mode without location
PASS Redirect 301 in "follow" mode with invalid location
PASS Redirect 301 in "manual" mode with invalid location
PASS Redirect 301 in "follow" mode with data location
PASS Redirect 301 in "manual" mode with data location
PASS Redirect 302 in "follow" mode without location
-FAIL Redirect 302 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 302
+PASS Redirect 302 in "manual" mode without location
PASS Redirect 302 in "follow" mode with invalid location
PASS Redirect 302 in "manual" mode with invalid location
PASS Redirect 302 in "follow" mode with data location
PASS Redirect 302 in "manual" mode with data location
PASS Redirect 303 in "follow" mode without location
-FAIL Redirect 303 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 303
+PASS Redirect 303 in "manual" mode without location
PASS Redirect 303 in "follow" mode with invalid location
PASS Redirect 303 in "manual" mode with invalid location
PASS Redirect 303 in "follow" mode with data location
PASS Redirect 303 in "manual" mode with data location
PASS Redirect 307 in "follow" mode without location
-FAIL Redirect 307 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 307
+PASS Redirect 307 in "manual" mode without location
PASS Redirect 307 in "follow" mode with invalid location
PASS Redirect 307 in "manual" mode with invalid location
PASS Redirect 307 in "follow" mode with data location
PASS Redirect 307 in "manual" mode with data location
PASS Redirect 308 in "follow" mode without location
-FAIL Redirect 308 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 308
+PASS Redirect 308 in "manual" mode without location
PASS Redirect 308 in "follow" mode with invalid location
PASS Redirect 308 in "manual" mode with invalid location
PASS Redirect 308 in "follow" mode with data location
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location.any.worker-expected.txt (250569 => 250570)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location.any.worker-expected.txt 2019-10-01 18:24:52 UTC (rev 250569)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location.any.worker-expected.txt 2019-10-01 18:51:06 UTC (rev 250570)
@@ -10,31 +10,31 @@
CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
PASS Redirect 301 in "follow" mode without location
-FAIL Redirect 301 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 301
+PASS Redirect 301 in "manual" mode without location
PASS Redirect 301 in "follow" mode with invalid location
PASS Redirect 301 in "manual" mode with invalid location
PASS Redirect 301 in "follow" mode with data location
PASS Redirect 301 in "manual" mode with data location
PASS Redirect 302 in "follow" mode without location
-FAIL Redirect 302 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 302
+PASS Redirect 302 in "manual" mode without location
PASS Redirect 302 in "follow" mode with invalid location
PASS Redirect 302 in "manual" mode with invalid location
PASS Redirect 302 in "follow" mode with data location
PASS Redirect 302 in "manual" mode with data location
PASS Redirect 303 in "follow" mode without location
-FAIL Redirect 303 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 303
+PASS Redirect 303 in "manual" mode without location
PASS Redirect 303 in "follow" mode with invalid location
PASS Redirect 303 in "manual" mode with invalid location
PASS Redirect 303 in "follow" mode with data location
PASS Redirect 303 in "manual" mode with data location
PASS Redirect 307 in "follow" mode without location
-FAIL Redirect 307 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 307
+PASS Redirect 307 in "manual" mode without location
PASS Redirect 307 in "follow" mode with invalid location
PASS Redirect 307 in "manual" mode with invalid location
PASS Redirect 307 in "follow" mode with data location
PASS Redirect 307 in "manual" mode with data location
PASS Redirect 308 in "follow" mode without location
-FAIL Redirect 308 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 308
+PASS Redirect 308 in "manual" mode without location
PASS Redirect 308 in "follow" mode with invalid location
PASS Redirect 308 in "manual" mode with invalid location
PASS Redirect 308 in "follow" mode with data location
Deleted: trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-expected.txt (250569 => 250570)
--- trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-expected.txt 2019-10-01 18:24:52 UTC (rev 250569)
+++ trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-expected.txt 2019-10-01 18:51:06 UTC (rev 250570)
@@ -1,37 +0,0 @@
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-
-PASS Redirect 301 in "follow" mode without location
-PASS Redirect 301 in "manual" mode without location
-PASS Redirect 301 in "follow" mode with invalid location
-PASS Redirect 301 in "manual" mode with invalid location
-PASS Redirect 301 in "follow" mode with data location
-PASS Redirect 301 in "manual" mode with data location
-PASS Redirect 302 in "follow" mode without location
-PASS Redirect 302 in "manual" mode without location
-PASS Redirect 302 in "follow" mode with invalid location
-PASS Redirect 302 in "manual" mode with invalid location
-PASS Redirect 302 in "follow" mode with data location
-PASS Redirect 302 in "manual" mode with data location
-PASS Redirect 303 in "follow" mode without location
-PASS Redirect 303 in "manual" mode without location
-PASS Redirect 303 in "follow" mode with invalid location
-PASS Redirect 303 in "manual" mode with invalid location
-PASS Redirect 303 in "follow" mode with data location
-PASS Redirect 303 in "manual" mode with data location
-PASS Redirect 307 in "follow" mode without location
-PASS Redirect 307 in "manual" mode without location
-PASS Redirect 307 in "follow" mode with invalid location
-PASS Redirect 307 in "manual" mode with invalid location
-PASS Redirect 307 in "follow" mode with data location
-PASS Redirect 307 in "manual" mode with data location
-PASS Redirect 308 in "follow" mode without location
-PASS Redirect 308 in "manual" mode without location
-PASS Redirect 308 in "follow" mode with invalid location
-PASS Redirect 308 in "manual" mode with invalid location
-PASS Redirect 308 in "follow" mode with data location
-PASS Redirect 308 in "manual" mode with data location
-
Deleted: trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-worker-expected.txt (250569 => 250570)
--- trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-worker-expected.txt 2019-10-01 18:24:52 UTC (rev 250569)
+++ trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-worker-expected.txt 2019-10-01 18:51:06 UTC (rev 250570)
@@ -1,37 +0,0 @@
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-
-PASS Redirect 301 in "follow" mode without location
-PASS Redirect 301 in "manual" mode without location
-PASS Redirect 301 in "follow" mode with invalid location
-PASS Redirect 301 in "manual" mode with invalid location
-PASS Redirect 301 in "follow" mode with data location
-PASS Redirect 301 in "manual" mode with data location
-PASS Redirect 302 in "follow" mode without location
-PASS Redirect 302 in "manual" mode without location
-PASS Redirect 302 in "follow" mode with invalid location
-PASS Redirect 302 in "manual" mode with invalid location
-PASS Redirect 302 in "follow" mode with data location
-PASS Redirect 302 in "manual" mode with data location
-PASS Redirect 303 in "follow" mode without location
-PASS Redirect 303 in "manual" mode without location
-PASS Redirect 303 in "follow" mode with invalid location
-PASS Redirect 303 in "manual" mode with invalid location
-PASS Redirect 303 in "follow" mode with data location
-PASS Redirect 303 in "manual" mode with data location
-PASS Redirect 307 in "follow" mode without location
-PASS Redirect 307 in "manual" mode without location
-PASS Redirect 307 in "follow" mode with invalid location
-PASS Redirect 307 in "manual" mode with invalid location
-PASS Redirect 307 in "follow" mode with data location
-PASS Redirect 307 in "manual" mode with data location
-PASS Redirect 308 in "follow" mode without location
-PASS Redirect 308 in "manual" mode without location
-PASS Redirect 308 in "follow" mode with invalid location
-PASS Redirect 308 in "manual" mode with invalid location
-PASS Redirect 308 in "follow" mode with data location
-PASS Redirect 308 in "manual" mode with data location
-
Deleted: trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-worker-expected.txt (250569 => 250570)
--- trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-worker-expected.txt 2019-10-01 18:24:52 UTC (rev 250569)
+++ trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-worker-expected.txt 2019-10-01 18:51:06 UTC (rev 250570)
@@ -1,42 +0,0 @@
-CONSOLE MESSAGE: Cross-origin redirection to invalidurl: denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to invalidurl: denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to invalidurl: denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to invalidurl: denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to invalidurl: denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-CONSOLE MESSAGE: Cross-origin redirection to data:,data%20url denied by Cross-Origin Resource Sharing policy: URL is either a non-HTTP URL or contains credentials.
-
-PASS Redirect 301 in "follow" mode without location
-FAIL Redirect 301 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 301
-PASS Redirect 301 in "follow" mode with invalid location
-PASS Redirect 301 in "manual" mode with invalid location
-PASS Redirect 301 in "follow" mode with data location
-PASS Redirect 301 in "manual" mode with data location
-PASS Redirect 302 in "follow" mode without location
-FAIL Redirect 302 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 302
-PASS Redirect 302 in "follow" mode with invalid location
-PASS Redirect 302 in "manual" mode with invalid location
-PASS Redirect 302 in "follow" mode with data location
-PASS Redirect 302 in "manual" mode with data location
-PASS Redirect 303 in "follow" mode without location
-FAIL Redirect 303 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 303
-PASS Redirect 303 in "follow" mode with invalid location
-PASS Redirect 303 in "manual" mode with invalid location
-PASS Redirect 303 in "follow" mode with data location
-PASS Redirect 303 in "manual" mode with data location
-PASS Redirect 307 in "follow" mode without location
-FAIL Redirect 307 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 307
-PASS Redirect 307 in "follow" mode with invalid location
-PASS Redirect 307 in "manual" mode with invalid location
-PASS Redirect 307 in "follow" mode with data location
-PASS Redirect 307 in "manual" mode with data location
-PASS Redirect 308 in "follow" mode without location
-FAIL Redirect 308 in "manual" mode without location assert_equals: Response's status is 0 expected 0 but got 308
-PASS Redirect 308 in "follow" mode with invalid location
-PASS Redirect 308 in "manual" mode with invalid location
-PASS Redirect 308 in "follow" mode with data location
-PASS Redirect 308 in "manual" mode with data location
-
Modified: trunk/Source/WebCore/ChangeLog (250569 => 250570)
--- trunk/Source/WebCore/ChangeLog 2019-10-01 18:24:52 UTC (rev 250569)
+++ trunk/Source/WebCore/ChangeLog 2019-10-01 18:51:06 UTC (rev 250570)
@@ -1,3 +1,18 @@
+2019-10-01 Rob Buis <[email protected]>
+
+ [Mac] Layout Test imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location.any.html fails
+ https://bugs.webkit.org/show_bug.cgi?id=202350
+
+ Reviewed by Alex Christensen.
+
+ In some cases didReceiveResponse will deliver redirects (normally willSendRequestInternal will be used for redirects).
+ When this is done in manual redirect mode make sure the response type is opaque redirect.
+
+ Test: imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location.any.html
+
+ * loader/SubresourceLoader.cpp:
+ (WebCore::SubresourceLoader::didReceiveResponse):
+
2019-10-01 Keith Rollin <[email protected]>
Remove some support for < iOS 13
Modified: trunk/Source/WebCore/loader/SubresourceLoader.cpp (250569 => 250570)
--- trunk/Source/WebCore/loader/SubresourceLoader.cpp 2019-10-01 18:24:52 UTC (rev 250569)
+++ trunk/Source/WebCore/loader/SubresourceLoader.cpp 2019-10-01 18:51:06 UTC (rev 250570)
@@ -385,6 +385,15 @@
return;
}
+ if (options().redirect == FetchOptions::Redirect::Manual && response.isRedirection()) {
+ ResourceResponse opaqueRedirectedResponse = response;
+ opaqueRedirectedResponse.setType(ResourceResponse::Type::Opaqueredirect);
+ opaqueRedirectedResponse.setTainting(ResourceResponse::Tainting::Opaqueredirect);
+ m_resource->responseReceived(opaqueRedirectedResponse);
+ if (!reachedTerminalState())
+ ResourceLoader::didReceiveResponse(opaqueRedirectedResponse, [completionHandlerCaller = WTFMove(completionHandlerCaller)] { });
+ return;
+ }
m_resource->responseReceived(response);
if (reachedTerminalState())
return;