Bug 240938

Summary: Use desktop User Agent when preconnecting for loads that are predicted to use desktop content mode
Product: WebKit Reporter: Matt Woodrow <mattwoodrow>
Component: WebKit Misc.Assignee: Matt Woodrow <mattwoodrow>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Matt Woodrow 2022-05-25 19:51:47 PDT
Preconnect currently requires a user agent string, and the preconnected socket will not be used if it doesn't match the UA of the HTTP request (and an HTTPS proxy is in use). When we use a desktop content mode and use the desktop UA for the request, this won't match the mobile UA used for preconnect. This improves the preconnect logic to predict the UA using the default webpage policies.
Comment 1 Matt Woodrow 2022-05-25 19:59:08 PDT
Pull request: https://github.com/WebKit/WebKit/pull/1037
Comment 2 Radar WebKit Bug Importer 2022-05-25 20:43:27 PDT
<rdar://problem/93946257>
Comment 3 EWS 2022-05-27 22:26:32 PDT
Committed r294987 (251091@main): <https://commits.webkit.org/251091@main>

Reviewed commits have been landed. Closing PR #1037 and removing active labels.