Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 112ea9b65c0bbe74342dc8514234756a1cc4fa98
https://github.com/WebKit/WebKit/commit/112ea9b65c0bbe74342dc8514234756a1cc4fa98
Author: Jeffrey Xu <[email protected]>
Date: 2026-09-09 (Wed, 09 Sep 2026)
Changed paths:
M Tools/TestWebKitAPI/Helpers/cocoa/HTTPServer.h
M Tools/TestWebKitAPI/Helpers/cocoa/HTTPServer.mm
M Tools/TestWebKitAPI/Helpers/cocoa/NetworkConnection.h
M Tools/TestWebKitAPI/Helpers/cocoa/NetworkConnection.mm
M Tools/TestWebKitAPI/Helpers/cocoa/NetworkSPI.h
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/HTTP2Server.mm
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ProcessSwapOnNavigation.mm
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ResourceLoadStatistics.mm
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SOAuthorizationTests.mm
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ServiceWorkerBasic.mm
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/UnifiedPDFTests.mm
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/mac/ContextMenuTests.mm
Log Message:
-----------
Add HTTP/2 proxying to API tests.
rdar://185263224
Reviewed by Alex Christensen.
This change adds a Http2Proxy enum to the test servers, which adds HTTP/2
support to the existing proxy.
This also adds the authority pseudo-header and changes headerFields to a Vector
to handle responses with multiple of the same header, which would otherwise get
dropped by the headerFields HashMap.
* Tools/TestWebKitAPI/Helpers/cocoa/HTTPServer.h:
(TestWebKitAPI::HTTPResponse::HTTPResponse):
(TestWebKitAPI::HTTPResponse::setHeaderField):
* Tools/TestWebKitAPI/Helpers/cocoa/HTTPServer.mm:
(TestWebKitAPI::shouldDisableTLS):
(TestWebKitAPI::usesConnectTunnelFramer):
(TestWebKitAPI::HTTPServer::listenerParameters):
(TestWebKitAPI::HTTPServer::HTTPServer):
(TestWebKitAPI::HTTPServer::scheme const):
(TestWebKitAPI::HTTPResponse::serialize const):
(TestWebKitAPI::HTTPServer::respondToHTTPMessagingRequests):
* Tools/TestWebKitAPI/Helpers/cocoa/NetworkConnection.h:
* Tools/TestWebKitAPI/Helpers/cocoa/NetworkConnection.mm:
(TestWebKitAPI::Connection::receiveHTTPMessagingRequest const):
(TestWebKitAPI::Connection::sendHTTPMessagingResponse const):
* Tools/TestWebKitAPI/Helpers/cocoa/NetworkSPI.h:
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/HTTP2Server.mm:
(TestWebKitAPI::TEST(HTTP2Server, ThroughProxy)):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ProcessSwapOnNavigation.mm:
((ProcessSwap, PSONRedirectionToExternal)):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SOAuthorizationTests.mm:
(TestWebKitAPI::TEST(SOAuthorizationRedirect,
InterceptionSucceedWith302AfterRedirection)):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ServiceWorkerBasic.mm:
((ServiceWorkers, ServiceWorkerStorageTiming)):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm:
(TestWebKitAPI::TEST(SiteIsolation, DISABLED_PlayAudioInMultipleFrames)):
(TestWebKitAPI::TEST(SiteIsolation, PlayAudioInRemoteFrameThenRemove)):
(TestWebKitAPI::TEST(SiteIsolation, MutesAndSetsAudioInMultipleFrames)):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/UnifiedPDFTests.mm:
(TestWebKitAPI::pdfServerWithSandboxCSPDirective):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/mac/ContextMenuTests.mm:
(TestWebKitAPI::imageSuggestedFilenameFromCollidingImageURL):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ResourceLoadStatistics.mm:
(TEST(ResourceLoadStatistics,
BlockUnpartitionedAndAllowPartitionedThirdPartyCookies)):
Canonical link: https://commits.webkit.org/320768@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications