Bug 225010 - PCM: debug mode should send the second report on a 10 second delay after the first
Summary: PCM: debug mode should send the second report on a 10 second delay after the ...
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-04-23 16:52 PDT by Kate Cheney
Modified: 2021-04-23 17:48 PDT (History)
2 users (show)

See Also:


Attachments
Patch (3.49 KB, patch)
2021-04-23 17:02 PDT, Kate Cheney
no flags Details | Formatted Diff | Diff
Patch for landing (3.49 KB, patch)
2021-04-23 17:12 PDT, 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-04-23 16:52:36 PDT
In PCM debug mode, the first report for an attribution gets sent at the expected 10 seconds. However, the second gets sent at the non-debug mode timing of 24-48 hours. We should fix this.
Comment 1 Radar WebKit Bug Importer 2021-04-23 16:52:55 PDT
<rdar://problem/77092303>
Comment 2 Kate Cheney 2021-04-23 17:02:22 PDT
Created attachment 426968 [details]
Patch
Comment 3 John Wilander 2021-04-23 17:07:16 PDT
Comment on attachment 426968 [details]
Patch

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

r=me with small comments. I think it's fine to land this without full EWS feedback since it only affects the opt-in debug mode setting. It could theoretically break regression tests but that is very unlikely.

> Source/WebKit/NetworkProcess/PrivateClickMeasurementManager.cpp:401
> +                    // mode is enabled, this should be every 10 seconds for easy testing.

I would avoid stating the 10 seconds since it's a constant that may change, making the comment obsolete. You can say "… this should be much shorter for easy testing."

> Source/WebKit/NetworkProcess/PrivateClickMeasurementManager.cpp:413
> +                // Or, if debug mode is enabled, we should send the second report on a 10 second delay for easy testing.

Ditto. I suggest "… we should send the second report on a much shorter delay for easy testing."
Comment 4 Kate Cheney 2021-04-23 17:12:44 PDT
Created attachment 426969 [details]
Patch for landing
Comment 5 EWS 2021-04-23 17:47:58 PDT
Committed r276545 (236985@main): <https://commits.webkit.org/236985@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 426969 [details].