https://bugs.webkit.org/show_bug.cgi?id=172524
<rdar://problem/
32360462>
Reviewed by Brent Fulgham.
Source/WebCore:
Covered by existing test.
* loader/ResourceLoadStatisticsStore.cpp:
Source/WebKit2:
* Shared/WebPreferencesDefinitions.h:
* UIProcess/WebResourceLoadStatisticsManager.cpp:
(WebKit::WebResourceLoadStatisticsManager::resetToConsistentState):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@217372
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2017-05-24 John Wilander <wilander@apple.com>
+
+ Resource Load Statistics: Change grandfathering default to one hour
+ https://bugs.webkit.org/show_bug.cgi?id=172524
+ <rdar://problem/32360462>
+
+ Reviewed by Brent Fulgham.
+
+ Covered by existing test.
+
+ * loader/ResourceLoadStatisticsStore.cpp:
+
2017-05-24 Jer Noble <jer.noble@apple.com>
Rename DisplaySleepDisabler -> SleepDisabler
namespace WebCore {
static const auto statisticsModelVersion = 4;
-static const auto secondsPerDay = 24 * 3600;
+static const auto secondsPerHour = 3600;
+static const auto secondsPerDay = 24 * secondsPerHour;
static auto timeToLiveUserInteraction = 30 * secondsPerDay;
static auto timeToLiveCookiePartitionFree = 1 * secondsPerDay;
-static auto grandfatheringTime = 3 * secondsPerDay;
+static auto grandfatheringTime = 1 * secondsPerHour;
static auto minimumTimeBetweeenDataRecordsRemoval = 60;
Ref<ResourceLoadStatisticsStore> ResourceLoadStatisticsStore::create()
+2017-05-24 John Wilander <wilander@apple.com>
+
+ Resource Load Statistics: Change grandfathering default to one hour
+ https://bugs.webkit.org/show_bug.cgi?id=172524
+ <rdar://problem/32360462>
+
+ Reviewed by Brent Fulgham.
+
+ * Shared/WebPreferencesDefinitions.h:
+ * UIProcess/WebResourceLoadStatisticsManager.cpp:
+ (WebKit::WebResourceLoadStatisticsManager::resetToConsistentState):
+
2017-05-24 Jer Noble <jer.noble@apple.com>
Rename DisplaySleepDisabler -> SleepDisabler
macro(ResourceLoadStatisticsTimeToLiveUserInteraction, resourceLoadStatisticsTimeToLiveUserInteraction, Double, double, 2592000, "", "") \
macro(ResourceLoadStatisticsTimeToLiveCookiePartitionFree, resourceLoadStatisticsTimeToLiveCookiePartitionFree, Double, double, 86400, "", "") \
macro(ResourceLoadStatisticsReducedTimestampResolution, resourceLoadStatisticsReducedTimestampResolution, Double, double, 3600, "", "") \
- macro(ResourceLoadStatisticsGrandfatheringTime, resourceLoadStatisticsGrandfatheringTime, Double, double, 259200, "", "") \
+ macro(ResourceLoadStatisticsGrandfatheringTime, resourceLoadStatisticsGrandfatheringTime, Double, double, 3600, "", "") \
\
#define FOR_EACH_WEBKIT_UINT32_PREFERENCE(macro) \
WebCore::ResourceLoadObserver::sharedObserver().setTimeToLiveUserInteraction(2592000);
WebCore::ResourceLoadObserver::sharedObserver().setTimeToLiveCookiePartitionFree(86400);
WebCore::ResourceLoadObserver::sharedObserver().setMinimumTimeBetweeenDataRecordsRemoval(60);
+ WebCore::ResourceLoadObserver::sharedObserver().setGrandfatheringTime(3600);
WebResourceLoadStatisticsStore::setNotifyPagesWhenDataRecordsWereScanned(false);
WebResourceLoadStatisticsStore::setShouldClassifyResourcesBeforeDataRecordsRemoval(true);
WebCore::ResourceLoadObserver::sharedObserver().clearInMemoryStore();