WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
221113
PCM: Indicate if network load data is user identifiable
https://bugs.webkit.org/show_bug.cgi?id=221113
Summary
PCM: Indicate if network load data is user identifiable
Kate Cheney
Reported
2021-01-28 18:27:21 PST
We should add a way to determine if a load is carrying user-identifiable data.
Attachments
Patch
(15.05 KB, patch)
2021-01-28 19:04 PST
,
Kate Cheney
no flags
Details
Formatted Diff
Diff
Patch
(15.27 KB, patch)
2021-02-01 12:44 PST
,
Kate Cheney
no flags
Details
Formatted Diff
Diff
Patch
(15.04 KB, patch)
2021-02-01 16:53 PST
,
Kate Cheney
no flags
Details
Formatted Diff
Diff
Patch for landing
(15.04 KB, patch)
2021-02-02 12:56 PST
,
Kate Cheney
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Kate Cheney
Comment 1
2021-01-28 18:27:39 PST
rdar://problem/71348187
Kate Cheney
Comment 2
2021-01-28 19:04:21 PST
Created
attachment 418694
[details]
Patch
John Wilander
Comment 3
2021-01-30 11:31:27 PST
Comment on
attachment 418694
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=418694&action=review
Looks good but let's work some more on naming and flip the currently used setting.
> Source/WebCore/ChangeLog:3 > + PCM: Indicate if load data is user identifiable
Maybe add "network load"
> Source/WebKit/ChangeLog:3 > + PCM: Indicate if load data is user identifiable
Ditto.
> Source/WebKit/NetworkProcess/NetworkDataTask.cpp:57 > + return NetworkDataTaskCocoa::create(session, client, parameters.request, parameters.webFrameID, parameters.webPageID, parameters.storedCredentialsPolicy, parameters.contentSniffingPolicy, parameters.contentEncodingSniffingPolicy, parameters.shouldClearReferrerOnHTTPSToHTTPRedirect, parameters.shouldPreconnectOnly, parameters.isMainFrameNavigation, parameters.isMainResourceNavigationForAnyFrame, parameters.networkActivityTracker, parameters.isNavigatingToAppBoundDomain, parameters.shouldRelaxThirdPartyCookieBlocking, parameters.carriesUserIdentifiableData);
Hmm. It's unfortunate that we lose scoping here. If something said PCM, it would be much easier to understand what this parameter is for. I was hoping PrivateClickMeasurement::CarriesUserIdentifiableData would do it but it doesn't help on the call site. Ideas? Maybe carriesUserIdentifiableClickData or carriesUserIdentifiablePCMData?
> Source/WebKit/NetworkProcess/PrivateClickMeasurementManager.cpp:166 > + loadParameters.carriesUserIdentifiableData = WebCore::PrivateClickMeasurement::CarriesUserIdentifiableData::Yes;
It's the opposite. :) This load does not carry user identifying data.
Kate Cheney
Comment 4
2021-02-01 11:24:00 PST
Comment on
attachment 418694
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=418694&action=review
I'll make these changes, thanks John!
>> Source/WebCore/ChangeLog:3 >> + PCM: Indicate if load data is user identifiable > > Maybe add "network load"
Will fix.
>> Source/WebKit/NetworkProcess/NetworkDataTask.cpp:57 >> + return NetworkDataTaskCocoa::create(session, client, parameters.request, parameters.webFrameID, parameters.webPageID, parameters.storedCredentialsPolicy, parameters.contentSniffingPolicy, parameters.contentEncodingSniffingPolicy, parameters.shouldClearReferrerOnHTTPSToHTTPRedirect, parameters.shouldPreconnectOnly, parameters.isMainFrameNavigation, parameters.isMainResourceNavigationForAnyFrame, parameters.networkActivityTracker, parameters.isNavigatingToAppBoundDomain, parameters.shouldRelaxThirdPartyCookieBlocking, parameters.carriesUserIdentifiableData); > > Hmm. It's unfortunate that we lose scoping here. If something said PCM, it would be much easier to understand what this parameter is for. I was hoping PrivateClickMeasurement::CarriesUserIdentifiableData would do it but it doesn't help on the call site. Ideas? Maybe carriesUserIdentifiableClickData or carriesUserIdentifiablePCMData?
Yes I suppose this is still vague. I'm leaning toward carriesUserIdentifiablePCMData because I could see 'clickData' being confused with things unrelated to PCM.
>> Source/WebKit/NetworkProcess/PrivateClickMeasurementManager.cpp:166 >> + loadParameters.carriesUserIdentifiableData = WebCore::PrivateClickMeasurement::CarriesUserIdentifiableData::Yes; > > It's the opposite. :) This load does not carry user identifying data.
Oops, I was thinking backwards after our conversation on naming -- good catch.
Kate Cheney
Comment 5
2021-02-01 12:44:30 PST
Created
attachment 418912
[details]
Patch
John Wilander
Comment 6
2021-02-01 14:51:33 PST
Comment on
attachment 418912
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=418912&action=review
> Source/WebKit/NetworkProcess/NetworkDataTask.cpp:57 > + return NetworkDataTaskCocoa::create(session, client, parameters.request, parameters.webFrameID, parameters.webPageID, parameters.storedCredentialsPolicy, parameters.contentSniffingPolicy, parameters.contentEncodingSniffingPolicy, parameters.shouldClearReferrerOnHTTPSToHTTPRedirect, parameters.shouldPreconnectOnly, parameters.isMainFrameNavigation, parameters.isMainResourceNavigationForAnyFrame, parameters.networkActivityTracker, parameters.isNavigatingToAppBoundDomain, parameters.shouldRelaxThirdPartyCookieBlocking, parameters.carriesUserIdentifiablePCMData);
Good choice.
Kate Cheney
Comment 7
2021-02-01 16:53:14 PST
Created
attachment 418940
[details]
Patch
Kate Cheney
Comment 8
2021-02-01 16:53:29 PST
(In reply to katherine_cheney from
comment #7
)
> Created
attachment 418940
[details]
> Patch
Name change based on offline conversation.
John Wilander
Comment 9
2021-02-02 10:45:49 PST
Comment on
attachment 418940
[details]
Patch LGTM. I don't know why cq has a minus.
Kate Cheney
Comment 10
2021-02-02 12:56:57 PST
Created
attachment 419055
[details]
Patch for landing
EWS
Comment 11
2021-02-02 14:44:43 PST
Committed
r272239
: <
https://trac.webkit.org/changeset/272239
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 419055
[details]
.
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