-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WKWebView Proxy API sometimes needs to recreate the NSURLSession
https://bugs.webkit.org/show_bug.cgi?id=259300 rdar://112164614 Reviewed by Chris Dumez. Certain types of nw_proxy_config_t objects need to be set at NSURLSession creation time. When one of them is in the proxy config array, recreate the NSURLSession if it exists. * Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.h: * Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm: (WebKit::SessionWrapper::recreateSessionWithUpdatedProxyConfigurations): (WebKit::SessionWrapper::initialize): (WebKit::NetworkSessionCocoa::setProxyConfigData): (WebKit::NetworkSessionCocoa::applyProxyConfigurationToSessionConfiguration): * Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.h: Canonical link: https://commits.webkit.org/266129@main
- Loading branch information
Showing
3 changed files
with
75 additions
and
29 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
You should probably clear the dataTaskMap, downloadMap, and webSocketDataTaskMap when this happens.