Move PCM::Store ownership from WebResourceLoadStatisticsStore to PrivateClickMeasurementManager
Created attachment 437067 [details] Patch
Comment on attachment 437067 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437067&action=review Looks good except for the recreateResourceLoadStatistics function that no longer deletes the PCM database, we should probably rename it and instead recreate the PCM store to simulate a browser restart. > Source/WebKit/NetworkProcess/NetworkSession.cpp:213 > destroyResourceLoadStatistics([this, weakThis = makeWeakPtr(*this), completionHandler = WTFMove(completionHandler)] () mutable { This seems like it might cause layout test issues. I used recreateResourceLoadStatistics to simulate a session restart in https://bugs.webkit.org/show_bug.cgi?id=219134, specifically for http/tests/privateClickMeasurement/expired-ad-click-gets-removed-on-session-start.html and http/tests/privateClickMeasurement/expired-attribution-report-gets-sent-on-session-start.html. We might need to rename it to simulatePrivateClickMeasurementSessionRestart and instead recreate the PCM database to keep these tests doing what they are supposed to do.
Created attachment 437074 [details] Patch
Committed r281886 (241216@main): <https://commits.webkit.org/241216@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 437074 [details].
<rdar://problem/82650844>