Fix UKM spam for PartitionedCookiePresentV3
Move the recording of PartitionedCookiePresentV3 outside the cookie
access loop in EmitCookieWarningsAndMetrics. It is now recorded at
most once per request if any partitioned cookies exist.
Also added a regression browser test to verify that accessing multiple
partitioned cookies in a single request only logs the event once.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// New code: logs 1 time (once per request).Remove this comment
// "receive-cookie-deprecation" and the RenderFrameHost is not prerendering.So it seems like we're just dropping these checks now? Is that intentional?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
// New code: logs 1 time (once per request).Johann HofmannRemove this comment
Done
// "receive-cookie-deprecation" and the RenderFrameHost is not prerendering.So it seems like we're just dropping these checks now? Is that intentional?
Done
"receive-cookie-deprecation") {We can probably clean this up soon, but not as urgent as this fix...
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
ukm_recorder.GetEntriesByName("PartitionedCookiePresentV3").size();Should it be V4 now?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Swapping out Arthur since we're out of his timezone now...
ukm_recorder.GetEntriesByName("PartitionedCookiePresentV3").size();Should it be V4 now?
I figured given that V3 never made it out of Canary and this is more of a bugfix for V3 I'd leave the name as is. But let me know if you feel strongly about that.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
ukm_recorder.GetEntriesByName("PartitionedCookiePresentV3").size();Johann HofmannShould it be V4 now?
I figured given that V3 never made it out of Canary and this is more of a bugfix for V3 I'd leave the name as is. But let me know if you feel strongly about that.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
We can probably clean this up soon, but not as urgent as this fix...
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Fix UKM spam for PartitionedCookiePresentV3
Move the recording of PartitionedCookiePresentV3 outside the cookie
access loop in EmitCookieWarningsAndMetrics. It is now recorded at
most once per request if any partitioned cookies exist.
Also added a regression browser test to verify that accessing multiple
partitioned cookies in a single request only logs the event once.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |