Bug 222149

Summary: Create SQLite skeleton implementation for PCM fraud prevention
Product: WebKit Reporter: Kate Cheney <katherine_cheney>
Component: WebKit Misc.Assignee: Kate Cheney <katherine_cheney>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, darin, jiewen_tan, webkit-bug-importer, wilander
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 221291    
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch none

Description Kate Cheney 2021-02-18 17:49:23 PST
Tracking the work to add support for PCM fraud prevention to a SQLite database.
Comment 1 Radar WebKit Bug Importer 2021-02-18 17:50:09 PST
<rdar://problem/74502655>
Comment 2 Kate Cheney 2021-02-18 18:15:34 PST
Created attachment 420895 [details]
Patch
Comment 3 Jiewen Tan 2021-02-18 18:23:14 PST
Comment on attachment 420895 [details]
Patch

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

LGTM, r=me. Thanks for making this patch.

> Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp:2966
> +    // FIXME: Store these in the attribution object once PCM fraud prevention is in place.

You can refer to this radar: <rdar://problem/73582032>.

> Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp:3017
> +    // FIXME: Use real values from the attribution object once PCM fraud prevention is in place.

You can refer to this radar: <rdar://problem/73582032>.
Comment 4 Kate Cheney 2021-02-18 18:36:22 PST
Created attachment 420898 [details]
Patch
Comment 5 Kate Cheney 2021-02-18 18:37:25 PST
(In reply to Jiewen Tan from comment #3)
> Comment on attachment 420895 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=420895&action=review
> 
> LGTM, r=me. Thanks for making this patch.
> 

Thanks -- waiting on EWS before landing.

> > Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp:2966
> > +    // FIXME: Store these in the attribution object once PCM fraud prevention is in place.
> 
> You can refer to this radar: <rdar://problem/73582032>.
> 

Fixed!

> > Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp:3017
> > +    // FIXME: Use real values from the attribution object once PCM fraud prevention is in place.
> 
> You can refer to this radar: <rdar://problem/73582032>.

Ditto.
Comment 6 EWS 2021-02-19 01:30:45 PST
Committed r273134: <https://commits.webkit.org/r273134>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 420898 [details].
Comment 7 Darin Adler 2021-02-19 13:15:02 PST
Comment on attachment 420898 [details]
Patch

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

> Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp:274
> +static const String unattributedPrivateClickMeasurementSchemaV1()

The const on the return value here is not valuable. We should change these "static const String" to "static String".