Bug 172524 - Resource Load Statistics: Change grandfathering default to one hour
Summary: Resource Load Statistics: Change grandfathering default to one hour
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: John Wilander
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-05-23 14:17 PDT by John Wilander
Modified: 2017-05-24 10:37 PDT (History)
8 users (show)

See Also:


Attachments
Patch (4.23 KB, patch)
2017-05-23 14:22 PDT, John Wilander
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Wilander 2017-05-23 14:17:44 PDT
We should only grandfather website data records for one hour to start with. If more is needed we can bump it up again.
Comment 1 Radar WebKit Bug Importer 2017-05-23 14:18:22 PDT
<rdar://problem/32360462>
Comment 2 John Wilander 2017-05-23 14:22:04 PDT
Created attachment 311051 [details]
Patch
Comment 3 Brent Fulgham 2017-05-23 17:51:54 PDT
Comment on attachment 311051 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=311051&action=review

r=me

> Source/WebKit2/UIProcess/WebResourceLoadStatisticsManager.cpp:152
> +    WebCore::ResourceLoadObserver::sharedObserver().setGrandfatheringTime(3600);

Weird that we can't use "grandfatheringTime" here, instead of a magic number.
Comment 4 John Wilander 2017-05-24 10:08:39 PDT
(In reply to Brent Fulgham from comment #3)
> Comment on attachment 311051 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=311051&action=review
> 
> r=me
> 
> > Source/WebKit2/UIProcess/WebResourceLoadStatisticsManager.cpp:152
> > +    WebCore::ResourceLoadObserver::sharedObserver().setGrandfatheringTime(3600);
> 
> Weird that we can't use "grandfatheringTime" here, instead of a magic number.

Thanks for the review!

grandfatheringTime in ResourceLoadStatisticsStore.cpp is the variable that's changed so we'd have to introduce a constant.
Comment 5 WebKit Commit Bot 2017-05-24 10:37:00 PDT
Comment on attachment 311051 [details]
Patch

Clearing flags on attachment: 311051

Committed r217372: <http://trac.webkit.org/changeset/217372>
Comment 6 WebKit Commit Bot 2017-05-24 10:37:01 PDT
All reviewed patches have been landed.  Closing bug.