Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Network connection integrity policies are missing when connecting via…
… <link rel=preconnect> https://bugs.webkit.org/show_bug.cgi?id=257096 rdar://107356544 Reviewed by Tim Horton. Add logic to set network connection integrity policy flags when sending a network request triggered by a link element with `rel=preconnect`. See below for more details. * Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivateForTesting.h: * Source/WebKit/UIProcess/API/Cocoa/WKWebViewTesting.mm: (-[WKWebView _networkProcessIdentifier]): Add a testing hook that returns the network process PID, for use in a new (internal) API test. * Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp: (WebKit::policySourceDocumentLoaderForFrame): Pull existing logic for grabbing a suitable `DocumentLoader` for a given frame out of `addParametersShared` and into a separate helper function, so that we can use it in multiple places. (WebKit::addParametersShared): (WebKit::WebLoaderStrategy::preconnectTo): Use the new helper function above to populate network connection integrity flags on the outbound resource load when handling preconnect. * Tools/TestWebKitAPI/cocoa/HTTPServer.h: * Tools/TestWebKitAPI/cocoa/HTTPServer.mm: (TestWebKitAPI::HTTPServer::totalConnections const): Add a helper method on the mock HTTP server to return the total connection count. Canonical link: https://commits.webkit.org/264382@main
- Loading branch information
Showing
5 changed files
with
42 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters