Bug 221113 - PCM: Indicate if network load data is user identifiable
Summary: PCM: Indicate if network load data is user identifiable
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kate Cheney
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-01-28 18:27 PST by Kate Cheney
Modified: 2021-02-02 14:44 PST (History)
6 users (show)

See Also:


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

Note You need to log in before you can comment on or make changes to this bug.
Description Kate Cheney 2021-01-28 18:27:21 PST
We should add a way to determine if a load is carrying user-identifiable data.
Comment 1 Kate Cheney 2021-01-28 18:27:39 PST
rdar://problem/71348187
Comment 2 Kate Cheney 2021-01-28 19:04:21 PST
Created attachment 418694 [details]
Patch
Comment 3 John Wilander 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.
Comment 4 Kate Cheney 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.
Comment 5 Kate Cheney 2021-02-01 12:44:30 PST
Created attachment 418912 [details]
Patch
Comment 6 John Wilander 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.
Comment 7 Kate Cheney 2021-02-01 16:53:14 PST
Created attachment 418940 [details]
Patch
Comment 8 Kate Cheney 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.
Comment 9 John Wilander 2021-02-02 10:45:49 PST
Comment on attachment 418940 [details]
Patch

LGTM. I don't know why cq has a minus.
Comment 10 Kate Cheney 2021-02-02 12:56:57 PST
Created attachment 419055 [details]
Patch for landing
Comment 11 EWS 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].