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.
Pull request: https://github.com/WebKit/WebKit/pull/1037
<rdar://problem/93946257>
Committed r294987 (251091@main): <https://commits.webkit.org/251091@main> Reviewed commits have been landed. Closing PR #1037 and removing active labels.