| Summary: | Pending preconnect key should include User-Agent | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ben Nham <nham> | ||||||||
| Component: | New Bugs | Assignee: | Ben Nham <nham> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | achristensen, cdumez, nham, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Ben Nham
2021-09-21 10:35:26 PDT
Created attachment 438836 [details]
Patch
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]. |