WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
235160
PCM: Same-site triggering events should support ephemeral measurement
https://bugs.webkit.org/show_bug.cgi?id=235160
Summary
PCM: Same-site triggering events should support ephemeral measurement
John Wilander
Reported
2022-01-12 15:15:23 PST
We added ephemeral measurement for direct response advertising in
https://bugs.webkit.org/show_bug.cgi?id=228984
. We added support for same-site triggering events in
https://bugs.webkit.org/show_bug.cgi?id=233173
. These two features should work together.
Attachments
[fast-cq] Patch
(11.14 KB, patch)
2022-01-12 15:48 PST
,
John Wilander
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
John Wilander
Comment 1
2022-01-12 15:15:49 PST
<
rdar://87423294
>
John Wilander
Comment 2
2022-01-12 15:48:25 PST
Created
attachment 449006
[details]
[fast-cq] Patch
Alex Christensen
Comment 3
2022-01-12 15:58:24 PST
Comment on
attachment 449006
[details]
[fast-cq] Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=449006&action=review
> Source/WebKit/NetworkProcess/NetworkSession.cpp:375 > + if (ephemeralMeasurement.isNeitherSameSiteNorCrossSiteTriggeringEvent(redirectDomain, firstPartyForCookies, attributionTriggerData))
I think the code would read nicer if this were phrased positively, like this: if (!ephemeralMeasurement.isSameSiteOrCrossSiteTriggeringEvent(...)) return;
John Wilander
Comment 4
2022-01-12 16:02:57 PST
(In reply to Alex Christensen from
comment #3
)
> Comment on
attachment 449006
[details]
> [fast-cq] Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=449006&action=review
> > > Source/WebKit/NetworkProcess/NetworkSession.cpp:375 > > + if (ephemeralMeasurement.isNeitherSameSiteNorCrossSiteTriggeringEvent(redirectDomain, firstPartyForCookies, attributionTriggerData)) > > I think the code would read nicer if this were phrased positively, like this: > if (!ephemeralMeasurement.isSameSiteOrCrossSiteTriggeringEvent(...)) > return;
I did consider that, but opted against it because we can't say for sure with the rather shallow analysis we do in that function that it *is* a triggering event. But we can say for sure that it *isn't* a triggering event. Unfortunate for readability but I don't want to take on the risk of someone calling that function and then assuming it's a fully validated triggering event based on the boolean return value. Makes sense?
Alex Christensen
Comment 5
2022-01-12 16:03:32 PST
sounds reasonable
John Wilander
Comment 6
2022-01-12 16:04:08 PST
(In reply to John Wilander from
comment #4
)
> (In reply to Alex Christensen from
comment #3
) > > Comment on
attachment 449006
[details]
> > [fast-cq] Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=449006&action=review
> > > > > Source/WebKit/NetworkProcess/NetworkSession.cpp:375 > > > + if (ephemeralMeasurement.isNeitherSameSiteNorCrossSiteTriggeringEvent(redirectDomain, firstPartyForCookies, attributionTriggerData)) > > > > I think the code would read nicer if this were phrased positively, like this: > > if (!ephemeralMeasurement.isSameSiteOrCrossSiteTriggeringEvent(...)) > > return; > > I did consider that, but opted against it because we can't say for sure with > the rather shallow analysis we do in that function that it *is* a triggering > event. But we can say for sure that it *isn't* a triggering event. > Unfortunate for readability but I don't want to take on the risk of someone > calling that function and then assuming it's a fully validated triggering > event based on the boolean return value. > > Makes sense?
I at one point had the function named isLikely… which felt vague and not really what the caller wanted.
John Wilander
Comment 7
2022-01-12 16:18:59 PST
win bot test flakiness unrelated.
John Wilander
Comment 8
2022-01-12 19:18:40 PST
The mac-AS-debug-wk2 bot is hitting an XPC or process bootstrap crash.
John Wilander
Comment 9
2022-01-12 19:20:33 PST
Comment on
attachment 449006
[details]
[fast-cq] Patch The remaining bots are taking forever to run. Thanks for the review, Alex!
EWS
Comment 10
2022-01-12 19:24:51 PST
Committed
r287970
(
245999@main
): <
https://commits.webkit.org/245999@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 449006
[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