diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /toolkit/components/pictureinpicture/content | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-upstream/125.0.1.tar.xz firefox-upstream/125.0.1.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/pictureinpicture/content')
-rw-r--r-- | toolkit/components/pictureinpicture/content/player.js | 14 | ||||
-rw-r--r-- | toolkit/components/pictureinpicture/content/player.xhtml | 1 |
2 files changed, 8 insertions, 7 deletions
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 @@ <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" windowtype="Toolkit:PictureInPicture" + macnativefullscreen="true" chromemargin="0,0,0,0" scrolling="false" > |