Bug 196407

Summary: Move WebResourceLoadStatisticsStore IPC calls from the UI process to the network process
Product: WebKit Reporter: John Wilander <wilander>
Component: WebKit Misc.Assignee: John Wilander <wilander>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, bfulgham, cdumez, commit-queue, satoshioono8
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 200225    
Bug Blocks:    
Attachments:
Description Flags
Patch none

Description John Wilander 2019-03-29 15:01:43 PDT
As part of the move of ITP from the UI process to the network process, the two WebResourceLoadStatisticsStore IPC endpoints were left behind. One of them is the message RequestStorageAccessUnderOpener which underpins the compatibility fix for federated logins using popups. We should redirect these IPC calls to the network process.
Comment 1 John Wilander 2019-03-29 15:02:01 PDT
<rdar://problem/47859936>
Comment 2 John Wilander 2019-03-29 15:15:39 PDT
Created attachment 366311 [details]
Patch
Comment 3 Brent Fulgham 2019-03-29 16:05:28 PDT
Comment on attachment 366311 [details]
Patch

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

r=me

> Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h:-192
> -    void requestStorageAccessUnderOpener(DomainInNeedOfStorageAccess&&, uint64_t openerPageID, OpenerDomain&&);

This looks like a nice bug fix and simplification!
Comment 4 John Wilander 2019-03-29 16:14:42 PDT
Thanks, Brent! I'll wait for some more green bubbles and then land.
Comment 5 John Wilander 2019-03-29 17:42:13 PDT
Comment on attachment 366311 [details]
Patch

The ios-sim bot is in bad shape with thousands of tests failing in various ways. Landing.
Comment 6 WebKit Commit Bot 2019-03-29 18:09:18 PDT
Comment on attachment 366311 [details]
Patch

Clearing flags on attachment: 366311

Committed r243671: <https://trac.webkit.org/changeset/243671>
Comment 7 WebKit Commit Bot 2019-03-29 18:09:19 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Chris Dumez 2019-07-29 08:28:54 PDT
Comment on attachment 366311 [details]
Patch

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

> Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.cpp:663
> +            resourceLoadStatistics->resourceLoadStatisticsUpdated(WTFMove(statistics));

WTFMove() since a for loop, ouch :/
https://bugs.webkit.org/show_bug.cgi?id=200225
Comment 9 Brent Fulgham 2022-02-12 21:18:16 PST
*** Bug 196318 has been marked as a duplicate of this bug. ***