WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
234892
Make WebResourceLoadStatisticsStore a MessageReceiver
https://bugs.webkit.org/show_bug.cgi?id=234892
Summary
Make WebResourceLoadStatisticsStore a MessageReceiver
Alex Christensen
Reported
2022-01-05 11:29:23 PST
Make WebResourceLoadStatisticsStore a MessageReceiver
Attachments
Patch
(117.87 KB, patch)
2022-01-05 11:31 PST
,
Alex Christensen
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(118.60 KB, patch)
2022-01-05 11:47 PST
,
Alex Christensen
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(118.55 KB, patch)
2022-01-05 12:05 PST
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(118.63 KB, patch)
2022-01-05 17:35 PST
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(118.63 KB, patch)
2022-01-05 17:36 PST
,
Alex Christensen
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2022-01-05 11:31:26 PST
Created
attachment 448413
[details]
Patch
Alex Christensen
Comment 2
2022-01-05 11:47:40 PST
Created
attachment 448414
[details]
Patch
Alex Christensen
Comment 3
2022-01-05 12:05:44 PST
Created
attachment 448415
[details]
Patch
John Wilander
Comment 4
2022-01-05 16:02:58 PST
Comment on
attachment 448415
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=448415&action=review
r=me bar addressing the test failures.
> Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp:-85 > -void WebResourceLoadStatisticsStore::setNotifyPagesWhenDataRecordsWereScanned(bool value)
Was this intentionally deleted? Doesn't seem to be part of the gist of this patch. A comment on why it can be removed would be good.
> Source/WebKit/NetworkProcess/NetworkProcess.cpp:539 > void NetworkProcess::updatePrevalentDomainsToBlockCookiesFor(PAL::SessionID sessionID, const Vector<RegistrableDomain>& domainsToBlock, CompletionHandler<void()>&& completionHandler)
Was this particular one not moved?
> Source/WebKit/NetworkProcess/NetworkProcess.cpp:684 > +void NetworkProcess::setShouldEnableSameSiteStrictEnforcementForTesting(PAL::SessionID sessionID, WebCore::SameSiteStrictEnforcementEnabled enabled, CompletionHandler<void()>&& completionHandler)
Nice catch.
> Source/WebKit/UIProcess/WebPageProxy.cpp:5572 > + websiteDataStore().networkProcess().send(Messages::WebResourceLoadStatisticsStore::LogFrameNavigation(RegistrableDomain { targetURL }, RegistrableDomain { pageURL }, RegistrableDomain { sourceURL }, isRedirect, frame.isMainFrame(), MonotonicTime::now() - m_didFinishDocumentLoadForMainFrameTimestamp, wasPotentiallyInitiatedByUser), sessionID().toUInt64());
Would be nice to be able to send session ID objects directly.
Alex Christensen
Comment 5
2022-01-05 17:17:59 PST
(In reply to John Wilander from
comment #4
)
> Comment on
attachment 448415
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=448415&action=review
> > r=me bar addressing the test failures. > > > Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp:-85 > > -void WebResourceLoadStatisticsStore::setNotifyPagesWhenDataRecordsWereScanned(bool value) > > Was this intentionally deleted? Doesn't seem to be part of the gist of this > patch. A comment on why it can be removed would be good.
It was dead code. Will note in change log.
> > > Source/WebKit/NetworkProcess/NetworkProcess.cpp:539 > > void NetworkProcess::updatePrevalentDomainsToBlockCookiesFor(PAL::SessionID sessionID, const Vector<RegistrableDomain>& domainsToBlock, CompletionHandler<void()>&& completionHandler) > > Was this particular one not moved?
I only moved the ones that were straightforwardly doing nothing but finding the WebResourceLoadStatisticsStore and forwarding parameters to it. This one goes to the NetworkStorageSession, so it'll be moved in a different patch.
Alex Christensen
Comment 6
2022-01-05 17:35:17 PST
Created
attachment 448457
[details]
Patch
Alex Christensen
Comment 7
2022-01-05 17:36:47 PST
Created
attachment 448458
[details]
Patch
Radar WebKit Bug Importer
Comment 8
2022-01-12 11:30:22 PST
<
rdar://problem/87471616
>
Darin Adler
Comment 9
2022-01-16 12:39:33 PST
Comment on
attachment 448458
[details]
Patch TestWebKitAPI.ResourceLoadStatistics.DataSummaryWithCachedProcess test is failing
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug