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-03-31 16:51:25 +00:00
parent eafb18685c
commit 0e1fd256c7
12 changed files with 681 additions and 244 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") {