[Webkit-unassigned] [Bug 264307] New: WKWebsiteDataStore proxy API breaks when using HTTP Connect with TLS
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 6 17:32:13 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=264307
Bug ID: 264307
Summary: WKWebsiteDataStore proxy API breaks when using HTTP
Connect with TLS
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Page Loading
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ajuma at chromium.org
CC: beidson at apple.com, cdumez at apple.com
Using an nw_proxy_config_t for HTTP Connect, with TLS enabled, a WKWebsiteDataStore's proxyConfigurations causes the network process to crash and the proxy configuration is then ignored.
Specifically, if we create the proxy this way:
nw_endpoint_t endpoint = nw_endpoint_create_host("example.com", "8080");
nw_protocol_options_t tls_options = nw_tls_create_options();
nw_proxy_config_t proxyConfig = nw_proxy_config_create_http_connect(endpoint, tls_options);
And then set it on proxyConfigurations, serialization/deserialization fails. In the logs, the network process outputs:
nw_proxy_config_create_with_agent_data No protocol definition registered for "tls"
nw_proxy_config_create_with_agent_data Failed to create proxy config, error in deserializing stack
The network process then crashes.
I also manually verified that serializing/deserializing such an nw_proxy_config_t using nw_proxy_config_copy_agent_data and nw_proxy_config_create_with_agent_data results in a nil nw_proxy_config_t.
I've also filed FB13343396 with a sample app.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231107/88f67e5d/attachment-0001.htm>
More information about the webkit-unassigned
mailing list