Bug 240938 - Use desktop User Agent when preconnecting for loads that are predicted to use desktop content mode
Summary: Use desktop User Agent when preconnecting for loads that are predicted to use...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Matt Woodrow
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-05-25 19:51 PDT by Matt Woodrow
Modified: 2022-05-27 22:26 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.