[Webkit-unassigned] [Bug 208612] Resource Load Statistics: Keep a count of resource loads per day
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 4 19:30:07 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=208612
--- Comment #6 from mmokary at apple.com ---
(In reply to Chris Dumez from comment #4)
> Comment on attachment 392506 [details]
> Patch
>
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=392506&action=review
>
> > Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp:1307
> > + postTask([this, numberOfDays = WTFMove(numberOfDays), completionHandler = WTFMove(completionHandler)]() mutable {
>
> No need to WTFMove() an unsigned
>
> > Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp:1317
> > + postTaskReply([resourceLoadCountPerDay = WTFMove(resourceLoadCountPerDay), completionHandler = WTFMove(completionHandler)]() mutable {
>
> ditto
In this case it's a Vector<unsigned>
>
> > Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp:1318
> > + completionHandler(WTFMove(resourceLoadCountPerDay));
>
> ditto
Same here, Vector<unsigned>
>
> > Source/WebKit/Shared/WebCoreArgumentCoders.cpp:2756
> > + // Transient stats
>
> WebKit comments need to end with a period.
>
> > Source/WebKit/Shared/WebCoreArgumentCoders.cpp:2859
> > + // Transient stats
>
> WebKit comments need to end with a period.
>
> > Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm:552
> > + completionHandler();
>
> Dont you need to pass a parameter here?
>
> > Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp:887
> > + if (!canSendMessage()) {
>
> Should not be needed.
All adjacent methods do this. If it's not needed it should be a separate task to update them all IMO.
>
> > Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:1526
> > + process->getResourceLoadCountPerDayForPastDays(m_sessionID, numberOfDays, WTFMove(completionHandler));
>
> use after move of completionHandler if there is more than one process pool
> with a network process.
Changing this to RELEASE_ASSERT(processPool().size() == 1)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200305/ff4369a9/attachment.htm>
More information about the webkit-unassigned
mailing list