Bug 187154

Summary: Resource Load Statistics: Don't create a WebResourceLoadStatisticsStore for ephemeral sessions
Product: WebKit Reporter: John Wilander <wilander>
Component: WebKit Misc.Assignee: John Wilander <wilander>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, cdumez, commit-queue, ews-watchlist
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Archive of layout-test-results from ews204 for win-future
none
Patch for landing none

Description John Wilander 2018-06-28 13:49:05 PDT
We should not create new WebResourceLoadStatisticsStore objects for ephemeral sessions since it creates duplicate in-memory stores. If we want to support a read-only mode, we should construct a singleton WebResourceLoadStatisticsStore object and detach it from the session.
Comment 1 John Wilander 2018-06-28 13:49:23 PDT
<rdar://problem/41487250>
Comment 2 John Wilander 2018-06-28 14:02:22 PDT
Created attachment 343846 [details]
Patch
Comment 3 John Wilander 2018-06-28 15:32:26 PDT
Created attachment 343862 [details]
Patch
Comment 4 John Wilander 2018-06-28 15:34:50 PDT
Created attachment 343863 [details]
Patch
Comment 5 John Wilander 2018-06-28 15:50:14 PDT
Created attachment 343865 [details]
Patch
Comment 6 Chris Dumez 2018-06-28 18:47:21 PDT
Comment on attachment 343865 [details]
Patch

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

LGTM, just a suggestion.

> Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:1478
>  

We should probably ASSERT(!m_sessionID.isEphemeral()) here.
Comment 7 EWS Watchlist 2018-06-29 03:25:41 PDT
Comment on attachment 343865 [details]
Patch

Attachment 343865 [details] did not pass win-ews (win):
Output: https://webkit-queues.webkit.org/results/8380231

New failing tests:
http/tests/security/canvas-remote-read-remote-video-localhost.html
Comment 8 EWS Watchlist 2018-06-29 03:25:53 PDT
Created attachment 343902 [details]
Archive of layout-test-results from ews204 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews204  Port: win-future  Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment 9 Brent Fulgham 2018-06-29 09:58:24 PDT
Comment on attachment 343865 [details]
Patch

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

r=me, but I'm afraid you'll need to rebase your patch (after Chris's change) before you can land.

> Source/WebKit/ChangeLog:9
> +        Most of the changes in this patch removes the boolean parameter for tracking

"Most of the changes in this patch REMOVE the boolean parameter for tracking"

>> Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:1478
>>  
> 
> We should probably ASSERT(!m_sessionID.isEphemeral()) here.

Agreed!
Comment 10 John Wilander 2018-06-29 12:33:22 PDT
Created attachment 343931 [details]
Patch for landing
Comment 11 WebKit Commit Bot 2018-06-29 13:11:46 PDT
Comment on attachment 343931 [details]
Patch for landing

Clearing flags on attachment: 343931

Committed r233367: <https://trac.webkit.org/changeset/233367>
Comment 12 WebKit Commit Bot 2018-06-29 13:11:48 PDT
All reviewed patches have been landed.  Closing bug.