From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- toolkit/components/pictureinpicture/content/player.js | 14 +++++++------- toolkit/components/pictureinpicture/content/player.xhtml | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'toolkit/components/pictureinpicture/content') diff --git a/toolkit/components/pictureinpicture/content/player.js b/toolkit/components/pictureinpicture/content/player.js index c60c2ca44e..d306494d92 100644 --- a/toolkit/components/pictureinpicture/content/player.js +++ b/toolkit/components/pictureinpicture/content/player.js @@ -45,7 +45,7 @@ const BOTTOM_LEFT_QUADRANT = 3; const BOTTOM_RIGHT_QUADRANT = 4; /** - * Public function to be called from PictureInPicture.jsm. This is the main + * Public function to be called from PictureInPicture.sys.mjs. This is the main * entrypoint for initializing the player window. * * @param {Number} id @@ -61,7 +61,7 @@ function setupPlayer(id, wgp, videoRef) { } /** - * Public function to be called from PictureInPicture.jsm. This update the + * Public function to be called from PictureInPicture.sys.mjs. This update the * controls based on whether or not the video is playing. * * @param {Boolean} isPlaying @@ -72,7 +72,7 @@ function setIsPlayingState(isPlaying) { } /** - * Public function to be called from PictureInPicture.jsm. This update the + * Public function to be called from PictureInPicture.sys.mjs. This update the * controls based on whether or not the video is muted. * * @param {Boolean} isMuted @@ -247,10 +247,10 @@ let Player = { this.audioScrubbing = true; this.handleAudioScrubbing(event.target.value); }); - this.audioScrubber.addEventListener("change", event => { + this.audioScrubber.addEventListener("change", () => { this.audioScrubbing = false; }); - this.audioScrubber.addEventListener("pointerdown", event => { + this.audioScrubber.addEventListener("pointerdown", () => { if (this.isMuted) { this.audioScrubber.max = 1; } @@ -1140,7 +1140,7 @@ let Player = { * @param {Event} event * Event context data object */ - onResize(event) { + onResize() { this.toggleSubtitlesSettingsPanel({ forceHide: true }); this.resizeDebouncer.disarm(); this.resizeDebouncer.arm(); @@ -1152,7 +1152,7 @@ let Player = { * @param {Event} event * Event context data object */ - onCommand(event) { + onCommand() { this.closePipWindow({ reason: "shortcut" }); }, diff --git a/toolkit/components/pictureinpicture/content/player.xhtml b/toolkit/components/pictureinpicture/content/player.xhtml index 5b6892d649..9982bf35be 100644 --- a/toolkit/components/pictureinpicture/content/player.xhtml +++ b/toolkit/components/pictureinpicture/content/player.xhtml @@ -6,6 +6,7 @@ -- cgit v1.2.3