Add CMP handling specific telemetry and update existing telemetry
Categories
(Core :: Privacy: Anti-Tracking, task, P2)
Tracking
()
People
(Reporter: emz, Assigned: timhuang)
References
(Blocks 1 open bug)
Details
Attachments
(7 files, 1 obsolete file)
|
3.90 KB,
text/plain
|
cboozarjomehri
:
data-review+
|
Details |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
dmeehan
:
approval-mozilla-beta+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
dmeehan
:
approval-mozilla-beta+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
dmeehan
:
approval-mozilla-beta+
|
Details | Review |
We want to answer the following questions requiring additional telemetry:
- How often do we handle a banner with a site specific rule, how often with a global rule?
- Distribution of CMP rules used. This does not require collecting domains so it should be privacy friendly
- How often do we fail to handle a banner with a global rule because there is no opt-out button present? E.g. OneTrust has variations of banners, only some include an opt-out button in the first view.
- Extend handle time telemetry to include whether its a global or site specific rule
Comment 1•2 years ago
|
||
Additional Telemetry Considerations in Pre-Release channels:
- What domains are CMP rules executing on?
- What domains are CMP rules not executing on as expected? (Nice to have)
- Sample auto-click failure: Banner presence detected, opt-out selector detected, Action take, banner still present
- Sample cookie injection failure: Banner presence detected, site reloads with cookie injected in storage, banner still present
For the cookie injector example it's important not to unintentionally create a loop where the banner can never be dismissed so the browser just keeps trying to reload with the same cookie.
| Reporter | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
Comment 3•2 years ago
|
||
Comment 4•2 years ago
|
||
Comment on attachment 9363467 [details]
data-request-Bug1813128.md
DATA COLLECTION REVIEW RESPONSE:
Is there or will there be documentation that describes the schema for the ultimate data set available publicly, complete and accurate?
Yes.
Is there a control mechanism that allows the user to turn the data collection on and off?
Yes. This collection can be controlled through the product's preferences.
If the request is for permanent data collection, is there someone who will monitor the data over time?
No, data collection expires after 128 days.
Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?
Category 2, Interactions
Category 3, Stored Content
Is the data collection request for default-on or default-off?
Default on for all channels.
Does the instrumentation include the addition of any new identifiers?
No.
Is the data collection covered by the existing Firefox privacy notice?
Yes.
Does the data collection use a third-party collection tool?
No.
Result: datareview-
Collection of Cat 3 data requires Sensitive Data Review Process
| Assignee | ||
Comment 5•2 years ago
|
||
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 6•2 years ago
|
||
Request another data review without collecting sensitive information. I will open another bug for collecting sensitive information.
| Assignee | ||
Comment 7•2 years ago
|
||
To collect the telemetry regarding CMPs, we need to know which CMP rule
is used for handling the cookie banner. So, we populate the rule id to
the click rule, the rule id contains the name of the CMP for global
rules. We will use the id to report telemetry.
| Assignee | ||
Comment 8•2 years ago
|
||
Depends on D193705
| Assignee | ||
Comment 9•2 years ago
|
||
Depends on D193706
Comment 10•2 years ago
|
||
Comment on attachment 9363778 [details]
data-request-Bug1813128-1.md
Is there or will there be documentation that describes the schema for the ultimate data set available publicly, complete and accurate?
Yes.
Is there a control mechanism that allows the user to turn the data collection on and off?
Yes. This collection can be controlled through the product's preferences.
If the request is for permanent data collection, is there someone who will monitor the data over time?
No. This collection will expire in 128.
Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?
Category 2, Interaction.
Is the data collection request for default-on or default-off?
Default on for all channels.
Does the instrumentation include the addition of any new identifiers?
No.
Is the data collection covered by the existing Firefox privacy notice?
Yes.
Does the data collection use a third-party collection tool?
No.
Result: datareview+
Comment 11•2 years ago
|
||
Comment 12•2 years ago
•
|
||
Backed out for causing cookie related leaks.
- backout: https://hg.mozilla.org/integration/autoland/rev/090e56d854375c3ce9a3fe22dec2ce6825d3549f
- push: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&selectedTaskRun=Cb1XO8IQQ6a7hLBNqj959w.0&revision=87c8c2e8c54d488d4c39c72b88eb09bba6f7faa2
- failure log: https://treeherder.mozilla.org/logviewer?job_id=437270353&repo=autoland&lineNumber=5927
[task 2023-11-22T13:50:00.371Z] 13:50:00 INFO - == BloatView: ALL (cumulative) LEAK AND BLOAT STATISTICS, default process 2673
[task 2023-11-22T13:50:00.371Z] 13:50:00 INFO -
[task 2023-11-22T13:50:00.372Z] 13:50:00 INFO - |<----------------Class--------------->|<-----Bytes------>|<----Objects---->|
[task 2023-11-22T13:50:00.372Z] 13:50:00 INFO - | | Per-Inst Leaked| Total Rem|
[task 2023-11-22T13:50:00.373Z] 13:50:00 INFO - 0 |TOTAL | 37 145472|21604192 4128|
[task 2023-11-22T13:50:00.373Z] 13:50:00 INFO - 228 |Cookie | 224 38528| 224 172|
[task 2023-11-22T13:50:00.376Z] 13:50:00 INFO - 1658 |nsClickRule | 104 43576| 419 419|
[task 2023-11-22T13:50:00.377Z] 13:50:00 INFO - 1680 |nsCookieBannerRule | 72 30168| 455 419|
[task 2023-11-22T13:50:00.377Z] 13:50:00 INFO - 1683 |nsCookieRule | 56 9632| 224 172|
[task 2023-11-22T13:50:00.378Z] 13:50:00 INFO - 1976 |nsStringBuffer | 8 23568| 900474 2946|
[task 2023-11-22T13:50:00.378Z] 13:50:00 INFO -
[task 2023-11-22T13:50:00.379Z] 13:50:00 INFO - nsTraceRefcnt::DumpStatistics: 2121 entries
[task 2023-11-22T13:50:00.380Z] 13:50:00 INFO - TEST-INFO | leakcheck | default leaked 172 Cookie
[task 2023-11-22T13:50:00.380Z] 13:50:00 INFO - TEST-INFO | leakcheck | default leaked 419 nsClickRule
[task 2023-11-22T13:50:00.381Z] 13:50:00 INFO - TEST-INFO | leakcheck | default leaked 419 nsCookieBannerRule
[task 2023-11-22T13:50:00.382Z] 13:50:00 INFO - TEST-INFO | leakcheck | default leaked 172 nsCookieRule
[task 2023-11-22T13:50:00.382Z] 13:50:00 INFO - TEST-INFO | leakcheck | default leaked 2946 nsStringBuffer
[task 2023-11-22T13:50:00.383Z] 13:50:00 INFO - TEST-UNEXPECTED-FAIL | leakcheck | default 145472 bytes leaked (Cookie, nsClickRule, nsCookieBannerRule, nsCookieRule, nsStringBuffer)
[task 2023-11-22T13:50:00.383Z] 13:50:00 INFO -
Comment 13•2 years ago
|
||
| Assignee | ||
Updated•2 years ago
|
Comment 14•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/6f63c50d10b5
https://hg.mozilla.org/mozilla-central/rev/ef551507170d
https://hg.mozilla.org/mozilla-central/rev/a1f726ef39fc
| Assignee | ||
Comment 15•2 years ago
|
||
To collect the telemetry regarding CMPs, we need to know which CMP rule
is used for handling the cookie banner. So, we populate the rule id to
the click rule, the rule id contains the name of the CMP for global
rules. We will use the id to report telemetry.
Original Revision: https://phabricator.services.mozilla.com/D193705
Updated•2 years ago
|
| Assignee | ||
Comment 16•2 years ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D193706
Depends on D194511
Updated•2 years ago
|
| Assignee | ||
Comment 17•2 years ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D193707
Depends on D194512
Updated•2 years ago
|
Comment 18•2 years ago
|
||
Uplift Approval Request
- Needs manual QE test: no
- Explanation of risk level: The patches don't change the behavior. It only adds Telemetry.
- Fix verified in Nightly: yes
- User impact if declined: No impace to users. But we won't be able to monitor the cookei banner blocker Germany rollout because of lacking Telemetry
- Code covered by automated testing: yes
- String changes made/needed: none
- Risk associated with taking this patch: low risk
- Is Android affected?: yes
- Steps to reproduce for manual QE testing: None
Comment 19•2 years ago
|
||
Comment on attachment 9365187 [details]
Bug 1813128 - Part 1: Populate the rule id to the clicking rule.
Approved for 120.0b3
Comment 20•2 years ago
|
||
Comment on attachment 9365188 [details]
Bug 1813128 - Part 2: Implement CMP specific telemetry.
Approved for 120.0b3
Comment 21•2 years ago
•
|
||
Comment on attachment 9365189 [details]
Bug 1813128 - Part 3: Add tests to verify telemetry.
Approved for 121.0b3
Updated•2 years ago
|
Comment 22•2 years ago
|
||
| uplift | ||
Description
•