Pending preconnect key should include User-Agent
Created attachment 438836 [details] Patch
<rdar://83259078>
Created attachment 438922 [details] Patch
Comment on attachment 438922 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=438922&action=review r=me with changes. > Source/WebKit/NetworkProcess/NetworkLoadScheduler.cpp:156 > +static std::tuple<String, String> mainResourceLoadKey(String protocolHostAndPort, String userAgent) `const String&` for both parameters to avoid ref-counting churn. > Source/WebKit/NetworkProcess/NetworkLoadScheduler.h:54 > + void startedPreconnectForMainResource(const URL&, const String&); Please do not omit the second parameter name as it is not obvious what it is. > Source/WebKit/NetworkProcess/NetworkLoadScheduler.h:55 > + void finishedPreconnectForMainResource(const URL&, const String&, const WebCore::ResourceError&); ditto. > Source/WebKit/NetworkProcess/NetworkLoadScheduler.h:81 > + using PendingPreconnectMap = HashMap<std::tuple<String, String>, PendingMainResourcePreconnectInfo>; We probably want inline comments to indicate what those Strings are.
Created attachment 439195 [details] Patch
Committed r283081 (242139@main): <https://commits.webkit.org/242139@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 439195 [details].