Bug 197238

Summary: Age out unconverted Ad Click Attributions after one week.
Product: WebKit Reporter: John Wilander <wilander>
Component: WebKit Misc.Assignee: John Wilander <wilander>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, cdumez, commit-queue, dbates, ews-watchlist, japhet, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing none

Description John Wilander 2019-04-24 12:26:34 PDT
Unconverted Ad Click Attributions should be aged out after a week.
Comment 1 Radar WebKit Bug Importer 2019-04-24 12:27:06 PDT
<rdar://problem/50177349>
Comment 2 John Wilander 2019-04-24 12:34:56 PDT
Created attachment 368158 [details]
Patch
Comment 3 Chris Dumez 2019-04-24 12:43:10 PDT
Comment on attachment 368158 [details]
Patch

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

> Source/WebCore/loader/AdClickAttribution.cpp:99
> +    m_timeOfAdClick = m_timeOfAdClick - maxAge - 1_s;

cannot we use m_timeOfAdClick = {} ? Then the time would be epoch, which I bet would be considered as expired.
Comment 4 John Wilander 2019-04-24 12:44:54 PDT
(In reply to Chris Dumez from comment #3)
> Comment on attachment 368158 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=368158&action=review
> 
> > Source/WebCore/loader/AdClickAttribution.cpp:99
> > +    m_timeOfAdClick = m_timeOfAdClick - maxAge - 1_s;
> 
> cannot we use m_timeOfAdClick = {} ? Then the time would be epoch, which I
> bet would be considered as expired.

Oh, I'll try that. Thanks for the review!
Comment 5 John Wilander 2019-04-24 13:49:24 PDT
Created attachment 368171 [details]
Patch for landing
Comment 6 WebKit Commit Bot 2019-04-24 14:28:48 PDT
Comment on attachment 368171 [details]
Patch for landing

Clearing flags on attachment: 368171

Committed r244614: <https://trac.webkit.org/changeset/244614>
Comment 7 WebKit Commit Bot 2019-04-24 14:28:49 PDT
All reviewed patches have been landed.  Closing bug.