RESOLVED FIXED174234
Drop unnecessary uses of targetStatistics.dataRecordsRemoved in ResourceLoadObserver
https://bugs.webkit.org/show_bug.cgi?id=174234
Summary Drop unnecessary uses of targetStatistics.dataRecordsRemoved in ResourceLoadO...
Chris Dumez
Reported 2017-07-06 19:54:58 PDT
Drop unnecessary uses of targetStatistics.dataRecordsRemoved in ResourceLoadObserver. It is always 0 since this member is only initialized later on, in the UIProcess.
Attachments
Patch (4.96 KB, patch)
2017-07-06 20:14 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2017-07-06 20:14:29 PDT
Brent Fulgham
Comment 2 2017-07-06 20:40:43 PDT
Comment on attachment 314800 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=314800&action=review Much tidier. Thank you for cleaning this up! > Source/WebCore/loader/ResourceLoadObserver.cpp:146 > { Do we need this scope? I think it might have been here to support locking, which we don't do anymore.
Chris Dumez
Comment 3 2017-07-06 20:41:54 PDT
Comment on attachment 314800 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=314800&action=review >> Source/WebCore/loader/ResourceLoadObserver.cpp:146 >> { > > Do we need this scope? I think it might have been here to support locking, which we don't do anymore. I added it to make sure people do not use targetStatistics later on in this function since the reference gets invalidated by the later call to ensureResourceStatisticsForPrimaryDomain() in this function.
WebKit Commit Bot
Comment 4 2017-07-06 21:15:12 PDT
Comment on attachment 314800 [details] Patch Clearing flags on attachment: 314800 Committed r219236: <http://trac.webkit.org/changeset/219236>
WebKit Commit Bot
Comment 5 2017-07-06 21:15:14 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.