Bug 203491

Summary: Layout Test http/tests/resourceLoadStatistics/website-data-removal-for-site-navigated-to-with-link-decoration.html is a flaky failure
Product: WebKit Reporter: katherine_cheney
Component: WebKit Misc.Assignee: katherine_cheney
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, cdumez, commit-queue, webkit-bug-importer, wilander
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description katherine_cheney 2019-10-28 10:30:10 PDT
Previously fixed in <rdar://problem/51074251>. Started flaking again after fixing <rdar://problem/56314484>.
Comment 1 Radar WebKit Bug Importer 2019-10-28 10:31:12 PDT
<rdar://problem/56674176>
Comment 2 katherine_cheney 2019-10-28 10:47:46 PDT
Created attachment 382081 [details]
Patch
Comment 3 Chris Dumez 2019-10-28 10:52:25 PDT
Comment on attachment 382081 [details]
Patch

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

> Source/WebKit/NetworkProcess/NetworkSession.cpp:181
> +    if (!networkProcess().isITPDatabaseEnabled())

Instead of having these checks at call sites, could we maybe call populateMemoryStoreFromDisk() unconditionally and add a null check for the persistent store in  populateMemoryStoreFromDisk()?
Comment 4 katherine_cheney 2019-10-28 11:17:08 PDT
Created attachment 382084 [details]
Patch
Comment 5 katherine_cheney 2019-10-28 13:50:30 PDT
(In reply to Chris Dumez from comment #3)
> Comment on attachment 382081 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=382081&action=review
> 
> > Source/WebKit/NetworkProcess/NetworkSession.cpp:181
> > +    if (!networkProcess().isITPDatabaseEnabled())
> 
> Instead of having these checks at call sites, could we maybe call
> populateMemoryStoreFromDisk() unconditionally and add a null check for the
> persistent store in  populateMemoryStoreFromDisk()?

Thanks! Still waiting on commit privileges, can you cq+?
Comment 6 WebKit Commit Bot 2019-10-28 14:38:33 PDT
Comment on attachment 382084 [details]
Patch

Clearing flags on attachment: 382084

Committed r251672: <https://trac.webkit.org/changeset/251672>
Comment 7 WebKit Commit Bot 2019-10-28 14:38:35 PDT
All reviewed patches have been landed.  Closing bug.