WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
222937
Simplify CallbackAggregator in WebsiteDataStore::fetchDataAndApply()
https://bugs.webkit.org/show_bug.cgi?id=222937
Summary
Simplify CallbackAggregator in WebsiteDataStore::fetchDataAndApply()
Chris Dumez
Reported
2021-03-08 13:08:30 PST
Simplify CallbackAggregator in WebsiteDataStore::fetchDataAndApply().
Attachments
Patch
(16.08 KB, patch)
2021-03-08 13:11 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(18.48 KB, patch)
2021-03-08 17:50 PST
,
Chris Dumez
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(19.26 KB, patch)
2021-03-08 18:13 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2021-03-08 13:11:46 PST
Created
attachment 422609
[details]
Patch
Darin Adler
Comment 2
2021-03-08 17:32:16 PST
Comment on
attachment 422609
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=422609&action=review
> Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:432 > +private:
Should indent this 4?
> Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:441 > + auto callbackAggregator = adoptRef(new CallbackAggregator(fetchOptions, WTFMove(queue), WTFMove(apply), *this));
Seems like there is a missing * here so we get a Ref<> instead of a RefPtr<>.
Chris Dumez
Comment 3
2021-03-08 17:44:55 PST
(In reply to Darin Adler from
comment #2
)
> Comment on
attachment 422609
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=422609&action=review
> > > Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:432 > > +private: > > Should indent this 4? > > > Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:441 > > + auto callbackAggregator = adoptRef(new CallbackAggregator(fetchOptions, WTFMove(queue), WTFMove(apply), *this)); > > Seems like there is a missing * here so we get a Ref<> instead of a RefPtr<>.
Oh right. We used to not do that to make capture by value convenient in the lambdas. However, Ref<> has a copy-constructor nowadays!
Chris Dumez
Comment 4
2021-03-08 17:50:01 PST
Created
attachment 422646
[details]
Patch
Chris Dumez
Comment 5
2021-03-08 18:13:14 PST
Created
attachment 422649
[details]
Patch
EWS
Comment 6
2021-03-08 19:40:42 PST
Committed
r274130
: <
https://commits.webkit.org/r274130
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 422649
[details]
.
Radar WebKit Bug Importer
Comment 7
2021-03-08 19:41:20 PST
<
rdar://problem/75199890
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug