Bug 1822395 - Telemetry for new PiP controls. r=mconley

Differential Revision: https://phabricator.services.mozilla.com/D173079
This commit is contained in:
Niklas Baumgardner
2023-04-04 18:47:08 +00:00
parent 78cf806a1d
commit 439f0e038c
12 changed files with 690 additions and 245 deletions

View File

@@ -333,6 +333,17 @@ var gMainPane = {
)
) {
document.getElementById("pictureInPictureBox").hidden = false;
setEventListener("pictureInPictureToggleEnabled", "command", function(
event
) {
if (!event.target.checked) {
Services.telemetry.recordEvent(
"pictureinpicture.settings",
"disable",
"settings"
);
}
});
}
if (AppConstants.platform == "win") {