Bug 220381 - Use sendWithAsyncReply instead of dataCallback for icon loading
Summary: Use sendWithAsyncReply instead of dataCallback for icon loading
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alex Christensen
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-01-06 13:19 PST by Alex Christensen
Modified: 2021-01-11 15:30 PST (History)
8 users (show)

See Also:


Attachments
Patch (33.27 KB, patch)
2021-01-06 13:27 PST, Alex Christensen
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (33.51 KB, patch)
2021-01-06 13:34 PST, Alex Christensen
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (33.54 KB, patch)
2021-01-06 14:01 PST, Alex Christensen
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (34.92 KB, patch)
2021-01-06 14:06 PST, Alex Christensen
no flags Details | Formatted Diff | Diff
Patch (35.22 KB, patch)
2021-01-06 16:40 PST, Alex Christensen
no flags Details | Formatted Diff | Diff
Patch (33.76 KB, patch)
2021-01-11 13:00 PST, Alex Christensen
ews-feeder: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Christensen 2021-01-06 13:19:44 PST
Use sendWithAsyncReply instead of dataCallback for icon loading
Comment 1 Alex Christensen 2021-01-06 13:27:59 PST
Created attachment 417122 [details]
Patch
Comment 2 Alex Christensen 2021-01-06 13:34:03 PST
Created attachment 417124 [details]
Patch
Comment 3 Alex Christensen 2021-01-06 14:01:53 PST
Created attachment 417127 [details]
Patch
Comment 4 Alex Christensen 2021-01-06 14:06:16 PST
Created attachment 417128 [details]
Patch
Comment 5 EWS Watchlist 2021-01-06 14:06:57 PST
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
Comment 6 Alex Christensen 2021-01-06 16:40:11 PST
Created attachment 417139 [details]
Patch
Comment 7 youenn fablet 2021-01-11 04:56:07 PST
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/
Comment 8 Alex Christensen 2021-01-11 13:00:35 PST
Created attachment 417405 [details]
Patch
Comment 9 EWS 2021-01-11 13:36:46 PST
Committed r271378: <https://trac.webkit.org/changeset/271378>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 417405 [details].
Comment 10 Radar WebKit Bug Importer 2021-01-11 13:37:17 PST
<rdar://problem/73011806>
Comment 11 Alex Christensen 2021-01-11 15:30:43 PST
http://trac.webkit.org/r271383