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
174174
[WK2] WebsiteDataStore::setResourceLoadStatisticsEnabled() updates processPools the store is not associated with
https://bugs.webkit.org/show_bug.cgi?id=174174
Summary
[WK2] WebsiteDataStore::setResourceLoadStatisticsEnabled() updates processPoo...
Chris Dumez
Reported
2017-07-05 14:12:17 PDT
WebsiteDataStore::setResourceLoadStatisticsEnabled() updates processPools the store is not associated with.
Attachments
Patch
(13.82 KB, patch)
2017-07-05 14:15 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2017-07-05 14:15:39 PDT
Created
attachment 314655
[details]
Patch
Brent Fulgham
Comment 2
2017-07-05 14:25:20 PDT
Comment on
attachment 314655
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=314655&action=review
> Source/WebKit2/ChangeLog:15 > + as well as corresponding methods as those appear to be unused.
Yikes! Good catch.
Brent Fulgham
Comment 3
2017-07-05 14:59:05 PDT
Comment on
attachment 314655
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=314655&action=review
Looks good. r=me.
> Source/WebKit2/UIProcess/WebProcessPool.cpp:1117 > + sendToAllProcesses(Messages::WebProcess::SetResourceLoadStatisticsEnabled(enabled));
This is much tidier!
> Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.cpp:1271 > + for (auto& processPool : processPools())
Idea: processPools() should have a method that takes a lambda and applies it to each process in the pool.
> Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.cpp:1281 > + m_resourceLoadStatistics->registerSharedResourceLoadObserver([this] (const Vector<String>& domainsToRemove, const Vector<String>& domainsToAdd, bool shouldClearFirst) {
I noticed that 'this' is refcounted. Do we need to capture it in this lambda?
WebKit Commit Bot
Comment 4
2017-07-05 15:27:50 PDT
Comment on
attachment 314655
[details]
Patch Clearing flags on attachment: 314655 Committed
r219161
: <
http://trac.webkit.org/changeset/219161
>
WebKit Commit Bot
Comment 5
2017-07-05 15:27:52 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