Bug 1602015 - Add telemetry to the protection panel milestone message r=nhnt11

Differential Revision: https://phabricator.services.mozilla.com/D56381

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Erica Wright 2019-12-11 15:38:30 +00:00
Родитель 2244382682
Коммит 68fd519608
3 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -30,6 +30,7 @@ add_task(async function doTest() {
);
for (let milestone of milestones) {
Services.telemetry.clearEvents();
// Trigger the milestone feature.
Services.prefs.setIntPref(
"browser.contentblocking.cfr-milestone.milestone-achieved",
@ -87,6 +88,8 @@ add_task(async function doTest() {
"Milestones section should no longer be visible in the panel."
);
checkClickTelemetry("milestone_message");
await closeProtectionsPanel();
}

Просмотреть файл

@ -161,7 +161,7 @@
<toolbarbutton id="protections-popup-milestones-content"
flex="1"
wrap="true"
oncommand="gProtectionsHandler.openProtections(true);">
oncommand="gProtectionsHandler.openProtections(true); gProtectionsHandler.recordClick('milestone_message');">
<description id="protections-popup-milestones-text" flex="1"
role="heading" aria-level="2"/>
<image id="protections-popup-milestones-illustration"/>

Просмотреть файл

@ -1606,6 +1606,7 @@ security.ui.protectionspopup:
How many times the protections panel was opened.
expiry_version: "75"
notification_emails:
- ewright@mozilla.com
- nhnt11@mozilla.com
- jhofmann@mozilla.com
- chsiang@mozilla.com
@ -1630,9 +1631,11 @@ security.ui.protectionspopup:
"subview_settings",
"settings",
"full_report",
"milestone_message",
]
bug_numbers:
- 1560327
- 1602015
description: >
User interaction by click events in the protections panel.
expiry_version: "75"