Bug 208895

Summary: Introduce ResourceLoadStatisticsParameters and move members from NetworkSessionCreationParameters
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Severity: Normal CC: bfulgham, commit-queue, mmaxfield, webkit-bug-importer, wilander, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Description Flags
Patch none

Description Alex Christensen 2020-03-10 16:56:42 PDT
Introduce ResourceLoadStatisticsParameters and move members from NetworkSessionCreationParameters
Comment 1 Alex Christensen 2020-03-10 16:58:17 PDT
Created attachment 393187 [details]
Comment 2 youenn fablet 2020-03-11 06:54:35 PDT
Comment on attachment 393187 [details]

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

> Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm:1176
> +    setResourceLoadStatisticsEnabled(parameters.resourceLoadStatisticsParameters.enableResourceLoadStatistics);

Since this is a NetworkSessionCreationParameters&&, we could move some of these values, like m_resourceLoadStatisticsDirectory

> Source/WebKit/Shared/ResourceLoadStatisticsParameters.h:36
> +struct ResourceLoadStatisticsParameters {

Given we have ResourceLoadStatistics inside ResourceLoadStatisticsParameters, could we remove ResourceLoadStatistics from the parameter names.
For instance s/resourceLoadStatisticsDirectory/directoy and s/resourceLoadStatisticsDirectoryExtensionHandle/directoryExtensionHandle.
Comment 3 Alex Christensen 2020-03-11 09:44:12 PDT
Created attachment 393255 [details]
Comment 4 John Wilander 2020-03-11 10:04:51 PDT
It looks good to me too.
Comment 5 WebKit Commit Bot 2020-03-11 10:42:03 PDT
The commit-queue encountered the following flaky tests while processing attachment 393255 [details]:

imported/w3c/web-platform-tests/IndexedDB/fire-success-event-exception.html bug 206554 (authors: shvaikalesh@gmail.com and youennf@gmail.com)
The commit-queue is continuing to process your patch.
Comment 6 WebKit Commit Bot 2020-03-11 10:42:43 PDT
Comment on attachment 393255 [details]

Clearing flags on attachment: 393255

Committed r258269: <https://trac.webkit.org/changeset/258269>
Comment 7 WebKit Commit Bot 2020-03-11 10:42:45 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2020-03-11 10:43:13 PDT
Comment 9 Myles C. Maxfield 2020-03-11 12:45:28 PDT
I think this patch is breaking Apple's internal builds.
Comment 10 Alex Christensen 2020-03-11 12:50:01 PDT
I believe I fixed that.