Add telemetry for the fingerprinting and cryptomining content blocking categories
Categories
(Core :: Privacy: Anti-Tracking, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox68 | --- | fixed |
People
(Reporter: englehardt, Assigned: ewright)
References
Details
(Whiteboard: [anti-tracking])
Attachments
(4 files)
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
3.42 KB,
text/plain
|
chutten
:
review+
|
Details |
|
Bug 1522919 - Add histograms to count fingerprinting and cryptomining blocking states per page load.
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
2.55 KB,
text/plain
|
chutten
:
data-review+
|
Details |
To measure the following:
- Whether or not fingerprinting / cryptomining blocking is enabled at startup
- Whether or not fingerprinting / cryptomining blocking is enabled when "Report a problem" is clicked
- Count of the number of page loads on which each category actively blocking at least one domain
We may want to consider doing this in a way that is more generic. I.e., send a ping that includes the set of active url-classifier features at startup, or have Report a problem's ping include all active blocklists.
Updated•7 years ago
|
Comment 1•7 years ago
|
||
Please also add new event telemetry entries for the fp/cryptomining UI in the control center: https://searchfox.org/mozilla-central/source/toolkit/components/telemetry/Events.yaml#677-688
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Comment 2•7 years ago
|
||
Just a note for whoever ends up picking this up:
(In reply to Steven Englehardt [:englehardt] from comment #0)
To measure the following:
- Whether or not fingerprinting / cryptomining blocking is enabled at startup
We already have some mechanisms for the other content blocking features in https://searchfox.org/mozilla-central/rev/490ab7f9b84570573a49d7fa018673ce0d5ddf22/browser/components/nsBrowserGlue.js#1386
- Whether or not fingerprinting / cryptomining blocking is enabled when "Report a problem" is clicked
This is already recorded automatically, if you give the feature a telemetryIdentifier (https://searchfox.org/mozilla-central/rev/e00ea598e52bbb35f8c45abf9c2eade17962bb5e/browser/base/content/browser-contentblocking.js#7) and add it to the "extra_keys" here: https://searchfox.org/mozilla-central/rev/490ab7f9b84570573a49d7fa018673ce0d5ddf22/toolkit/components/telemetry/Events.yaml#670-672,702-704
- Count of the number of page loads on which each category actively blocking at least one domain
That's probably a new measurement, though we do have the "shield" histogram which is somewhat similar (https://searchfox.org/mozilla-central/rev/e00ea598e52bbb35f8c45abf9c2eade17962bb5e/browser/base/content/browser-contentblocking.js#816-820). Maybe we could make it a keyed histogram or something. A little creativity needed here.
| Assignee | ||
Comment 3•7 years ago
|
||
(In reply to Johann Hofmann [:johannh] from comment #2)
- Whether or not fingerprinting / cryptomining blocking is enabled when "Report a problem" is clicked
This is already recorded automatically, if you give the feature a telemetryIdentifier (https://searchfox.org/mozilla-central/rev/e00ea598e52bbb35f8c45abf9c2eade17962bb5e/browser/base/content/browser-contentblocking.js#7) and add it to the "extra_keys" here: https://searchfox.org/mozilla-central/rev/490ab7f9b84570573a49d7fa018673ce0d5ddf22/toolkit/components/telemetry/Events.yaml#670-672,702-704
:englehardt, :johannh, You are correct that there is some telemetry already recorded here, but it is not whether the pref is enabled when "Report a problem" is clicked, it is whether a cryptominer/fingerprinter was being blocked when "Report a problem" is clicked. Which one do we want, or do we want both?
| Reporter | ||
Comment 4•7 years ago
|
||
:englehardt, :johannh, You are correct that there is some telemetry already recorded here, but it is not whether the pref is enabled when "Report a problem" is clicked, it is whether a cryptominer/fingerprinter was being blocked when "Report a problem" is clicked. Which one do we want, or do we want both?
I meant whether a cryptominer/fingerprinter was being blocked when "Report a problem" is clicked, not whether the feature was simply enabled, but not blocking, on the current page. Thanks for catching that!
| Assignee | ||
Comment 5•7 years ago
|
||
Include a boolean reporting whether these prefs are enabled on startup. inlcude extra information when user interacts with the control panel reporting if anything is being blocked.
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 6•7 years ago
|
||
doc for data review please and thank you!
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 7•7 years ago
|
||
- Count of the number of page loads on which each category actively blocking at least one domain
Implementing this portion caused the discovery of a bug, it won't be able to be added until after bug 1528080 is fixed
Comment 8•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Comment 10•7 years ago
|
||
Sorry for the backout, landed again. Thanks
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
Comment 13•7 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 14•7 years ago
|
||
Add histograms to count fingerprinting and cryptomining blocking states per page load.
Move shield histogram counts so it is not counting multiple per page load.
| Assignee | ||
Comment 15•7 years ago
|
||
Asking for data-review for part 2 of this patch. This adds a histogram which counts the number of page loads, and for each page load how many pages block or allow a fingerprinter/ cryptominer.
Comment 16•7 years ago
|
||
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
Backed out changeset 39c2628de53e (bug 1522919) for browser chrome failures at content/test/trackingUI/browser_trackingUI_cryptominers.js
Backout: https://hg.mozilla.org/integration/autoland/rev/783538d74b6ab0dbffd89ac71eda0d8952394037
Failure push: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=39c2628de53e5a87b23737ae0364705197cef9b1&selectedJob=232210625
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=232210625&repo=autoland&lineNumber=4143
[task 2019-03-06T17:52:44.972Z] 17:52:44 INFO - TEST-PASS | browser/base/content/test/trackingUI/browser_trackingUI_cryptominers.js | Shows an exception when appropriate -
[task 2019-03-06T17:52:44.974Z] 17:52:44 INFO - Buffered messages finished
[task 2019-03-06T17:52:44.975Z] 17:52:44 INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/trackingUI/browser_trackingUI_cryptominers.js | The correct number of page loads have been recorded - 3 == 1 - JS frame :: chrome://mochitests/content/browser/browser/base/content/test/trackingUI/browser_trackingUI_cryptominers.js :: testTelemetry :: line 119
[task 2019-03-06T17:52:44.976Z] 17:52:44 INFO - Stack trace:
[task 2019-03-06T17:52:44.977Z] 17:52:44 INFO - chrome://mochitests/content/browser/browser/base/content/test/trackingUI/browser_trackingUI_cryptominers.js:testTelemetry:119
[task 2019-03-06T17:52:44.977Z] 17:52:44 INFO - chrome://mochitests/content/browser/browser/base/content/test/trackingUI/browser_trackingUI_cryptominers.js:testIdentityState:58
[task 2019-03-06T17:52:44.977Z] 17:52:44 INFO - chrome://mochitests/content/browser/browser/base/content/test/trackingUI/browser_trackingUI_cryptominers.js:test:128
[task 2019-03-06T17:52:44.977Z] 17:52:44 INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1106
[task 2019-03-06T17:52:44.977Z] 17:52:44 INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1134
[task 2019-03-06T17:52:44.977Z] 17:52:44 INFO - chrome://mochikit/content/browser-test.js:nextTest/<:995
[task 2019-03-06T17:52:44.977Z] 17:52:44 INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:803
| Assignee | ||
Comment 20•7 years ago
|
||
Could you dig into this on linux for me?
Comment 22•7 years ago
|
||
Comment 23•7 years ago
|
||
| bugherder | ||
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Updated•7 years ago
|
Updated•7 years ago
|
Description
•