Bug 191395 - Resource Load Statistics: Enable cap on partitioned cache max age
Summary: Resource Load Statistics: Enable cap on partitioned cache max age
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: John Wilander
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-11-07 12:55 PST by John Wilander
Modified: 2018-11-07 16:16 PST (History)
3 users (show)

See Also:


Attachments
Patch (3.91 KB, patch)
2018-11-07 14:40 PST, John Wilander
no flags Details | Formatted Diff | Diff
Patch for landing (3.90 KB, patch)
2018-11-07 15:37 PST, 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 2018-11-07 12:55:08 PST
We need a patch to turn this on.
Comment 1 Radar WebKit Bug Importer 2018-11-07 12:55:55 PST
<rdar://problem/45885977>
Comment 2 John Wilander 2018-11-07 14:40:29 PST
Created attachment 354156 [details]
Patch
Comment 3 Chris Dumez 2018-11-07 14:45:05 PST
Comment on attachment 354156 [details]
Patch

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

> Source/WebKit/UIProcess/ResourceLoadStatisticsMemoryStore.cpp:839
>      RunLoop::main().dispatch([store = makeRef(m_store), seconds] () {

updateCacheMaxAgeCap(); ?
Comment 4 John Wilander 2018-11-07 14:48:45 PST
(In reply to Chris Dumez from comment #3)
> Comment on attachment 354156 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=354156&action=review
> 
> > Source/WebKit/UIProcess/ResourceLoadStatisticsMemoryStore.cpp:839
> >      RunLoop::main().dispatch([store = makeRef(m_store), seconds] () {
> 
> updateCacheMaxAgeCap(); ?

Yes, that's a nice enhancement. I tried first to chain them the other way around but decided I didn't want to set the member variable on every call to updateCacheMaxAgeCap().

Thanks for the review!
Comment 5 John Wilander 2018-11-07 14:51:26 PST
I will wait for the bots to run the tests before landing.
Comment 6 John Wilander 2018-11-07 15:30:53 PST
The Mac ImageOnlyFailure test issue is unrelated.
Comment 7 John Wilander 2018-11-07 15:37:14 PST
Created attachment 354170 [details]
Patch for landing
Comment 8 WebKit Commit Bot 2018-11-07 16:16:08 PST
Comment on attachment 354170 [details]
Patch for landing

Clearing flags on attachment: 354170

Committed r237949: <https://trac.webkit.org/changeset/237949>
Comment 9 WebKit Commit Bot 2018-11-07 16:16:10 PST
All reviewed patches have been landed.  Closing bug.