WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
174234
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
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2017-07-06 20:14:29 PDT
Created
attachment 314800
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug