Changeset 230771 in webkit
- Timestamp:
- Apr 18, 2018, 11:55:59 AM (8 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/WebsiteData/WebsiteDataStore.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r230766 r230771 1 2018-04-18 Brent Fulgham <bfulgham@apple.com> 2 3 Avoid crash if ITP Debug mode is on, but ResourceLoadStatistics are not being used 4 https://bugs.webkit.org/show_bug.cgi?id=184739 5 <rdar://problem/39287964> 6 7 Reviewed by David Kilzer. 8 9 If a user has the ResourceLoadStatistics logic turned off, but has the ITP Debug experimental 10 flag turned on, you can cause a crash. 11 12 This is because the WebsiteDataStore for the process doesn't bother creating a ResourceLoadStatisticsStore 13 if the statistics machinery is not running. The ITP debug flag was being blindly set without checking 14 if the statistics store exists or not, which can cause a crash. 15 16 * UIProcess/WebsiteData/WebsiteDataStore.cpp: 17 (WebKit::WebsiteDataStore::setResourceLoadStatisticsDebugMode): Check if the statistics store exists 18 before calling functions on it. 19 1 20 2018-04-18 Paul Knight <pknight@apple.com> 2 21 -
trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp
r230219 r230771 1436 1436 { 1437 1437 m_resourceLoadStatisticsDebugMode = enabled; 1438 m_resourceLoadStatistics->setResourceLoadStatisticsDebugMode(enabled); 1438 if (m_resourceLoadStatistics) 1439 m_resourceLoadStatistics->setResourceLoadStatisticsDebugMode(enabled); 1439 1440 } 1440 1441
Note:
See TracChangeset
for help on using the changeset viewer.