Summary: | Use sendWithAsyncReply instead of dataCallback for icon loading | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alex Christensen <achristensen> | ||||||||||||||
Component: | New Bugs | Assignee: | Alex Christensen <achristensen> | ||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||
Severity: | Normal | CC: | berto, cdumez, cgarcia, ews-watchlist, gustavo, japhet, webkit-bug-importer, youennf | ||||||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||||||
Version: | WebKit Nightly Build | ||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||
OS: | Unspecified | ||||||||||||||||
Attachments: |
|
Description
Alex Christensen
2021-01-06 13:19:44 PST
Created attachment 417122 [details]
Patch
Created attachment 417124 [details]
Patch
Created attachment 417127 [details]
Patch
Created attachment 417128 [details]
Patch
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See https://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API Created attachment 417139 [details]
Patch
Comment on attachment 417139 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=417139&action=review > Source/WebCore/loader/DocumentLoader.cpp:327 > + callback(nullptr); Can callback modify m_iconLoaders? Given we do m_iconLoaders.clear() below, can we do a std::exchange? > Source/WebCore/loader/DocumentLoader.cpp:2193 > + m_iconLoaders.set(WTFMove(iconLoader), WTFMove(completionHandler)); s/set/add/ Created attachment 417405 [details]
Patch
Committed r271378: <https://trac.webkit.org/changeset/271378> All reviewed patches have been landed. Closing bug and clearing flags on attachment 417405 [details]. |