Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fcd1bae996082932d9856e728a09a9934e152d53
https://github.com/WebKit/WebKit/commit/fcd1bae996082932d9856e728a09a9934e152d53
Author: Fujii Hironori <[email protected]>
Date: 2026-04-17 (Fri, 17 Apr 2026)
Changed paths:
M LayoutTests/http/tests/security/redirect-BLOCKED-to-localURL-expected.txt
M LayoutTests/platform/glib/TestExpectations
M LayoutTests/platform/ios/TestExpectations
R
LayoutTests/platform/mac/http/tests/security/redirect-BLOCKED-to-localURL-expected.txt
R
LayoutTests/platform/win/http/tests/security/redirect-BLOCKED-to-localURL-expected.txt
M Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.cpp
M Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.h
Log Message:
-----------
[soup] http/tests/security/redirect-BLOCKED-to-localURL.html fails
https://bugs.webkit.org/show_bug.cgi?id=263720
Reviewed by Claudio Saavedra.
This test case sends a response of HTTP redirect to a local file. And, the
redirection should be blocked.
In GTK and WPE ports, the redirection was blocked by
DocumentLoader::willSendRequest, and DidFailProvisionalLoadForFrame message was
sent to WebPageProxy. The message contained a ResourceError with a file URL.
WebPageProxy determined it's a invalid message due to the file URL, and
disconnected the connection to web process.
In Mac port, the HTTP redirect was blocked earlier in the network process in
this case. Do the same for libsoup backend.
The common expected.txt file for the test case was added for Chromium port.
Unified mac and win platform specific expected.txt files into the common
expected.txt file.
* LayoutTests/http/tests/security/redirect-BLOCKED-to-localURL-expected.txt:
* LayoutTests/platform/glib/TestExpectations:
* LayoutTests/platform/ios/TestExpectations:
*
LayoutTests/platform/mac/http/tests/security/redirect-BLOCKED-to-localURL-expected.txt:
Removed.
*
LayoutTests/platform/win/http/tests/security/redirect-BLOCKED-to-localURL-expected.txt:
Removed.
* Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.cpp:
(WebKit::shouldStartHTTPRedirection):
(WebKit::NetworkDataTaskSoup::didSendRequest):
(WebKit::NetworkDataTaskSoup::shouldStartHTTPRedirection):
* Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.h:
Canonical link: https://commits.webkit.org/311441@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications