Bug 253176 - Unify preconnect implementations in NetworkProcess
Summary: Unify preconnect implementations in NetworkProcess
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-01 11:20 PST by Ben Nham
Modified: 2023-03-01 11:20 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Nham 2023-03-01 11:20:19 PST
There are a lot of callsites in NetworkProcess that manually create a PreconnectTask with differing NetworkLoadParameters:

* NetworkProcess::preconnectTo - used to preconnect to main resources
* NetworkConnectionToWebProcess::preconnectTo - used to handle preconnects created by `<link rel="preconnect" ...>`
* SpeculativeLoadManager::preconnectForSubresource - used to preconnect to subresource domains speculatively

And then in 253120 I've added another callsite `EarlyHintsResourceLoader::startPreconnectTask`.

It seems like we should be able to unify these callsites into something a bit saner.
Comment 1 Radar WebKit Bug Importer 2023-03-01 11:20:50 PST
<rdar://problem/106096729>