WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED MOVED
233943
NSURLSession WebSocket does not use the configured proxy
https://bugs.webkit.org/show_bug.cgi?id=233943
Summary
NSURLSession WebSocket does not use the configured proxy
Andrea Govoni
Reported
2021-12-07 11:41:38 PST
Created
attachment 446214
[details]
WebSocket connection timeout errors in the JavaScript Console. – Overview: On macOS Monterey systems with configured Automatic Proxy Configuration (.pac) file or HTTP/HTTPS proxy servers, Safari doesn't use the proxy when establishing WebSocket connections if the experimental feature "NSURLSession WebSocket" is enabled (that is the default setting on Monterey). – Steps to Reproduce: 1) Set a PAC file or HTTP/HTTPS proxy in System Preferences --> Network. 2) Go to
https://ws.ifelse.io/.ws
(that server is running
https://github.com/jmalloc/echo-server
according to this Stack Overflow question
https://stackoverflow.com/questions/4092591/websocket-live-server
). – Actual Results: On networks where Internet access is allowed only using the network proxy, the connection will not succeed and JavaScript Console will yield: WebSocket connection to 'wss://ws.ifelse.io/' failed: The request timed out. – Expected Results: Safari should use the system proxy. – Build Date & Hardware: I've tested this issue on macOS Monterey 12.0.1 (21A559) with the following Safari builds: • Safari 15.1 (17612.2.9.1.20) <-- current version on Monterey • Safari Technology Preview release 135 (Safari 15.4, WebKit 17613.1.7.3) • WebKit build archive
r286598
<-- it actually threw a bunch of errors on startup and I was unable to test by disabling "NSURLSession WebSocket" because when I tried to open its Preferences to enable the Development menu, it crashed… so I'm not 100% sure about this test – Additional Information: If I disable the "NSURLSession WebSocket" experimental feature, system proxy is used and connections succeed.
Attachments
WebSocket connection timeout errors in the JavaScript Console.
(344.02 KB, image/png)
2021-12-07 11:41 PST
,
Andrea Govoni
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2021-12-07 12:09:07 PST
Thank you for the report. We are tracking this internally as
rdar://84740185
Alexey Proskuryakov
Comment 2
2021-12-09 10:13:15 PST
Marking as MOVED per the above, as the fix will be below WebKit.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug