summaryrefslogtreecommitdiffstats
path: root/toolkit/actors/PictureInPictureChild.sys.mjs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
commit086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch)
treea4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /toolkit/actors/PictureInPictureChild.sys.mjs
parentAdding debian version 124.0.1-1. (diff)
downloadfirefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz
firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/actors/PictureInPictureChild.sys.mjs')
-rw-r--r--toolkit/actors/PictureInPictureChild.sys.mjs12
1 files changed, 6 insertions, 6 deletions
diff --git a/toolkit/actors/PictureInPictureChild.sys.mjs b/toolkit/actors/PictureInPictureChild.sys.mjs
index 62dc6cdfff..2a415df32d 100644
--- a/toolkit/actors/PictureInPictureChild.sys.mjs
+++ b/toolkit/actors/PictureInPictureChild.sys.mjs
@@ -1225,11 +1225,11 @@ export class PictureInPictureToggleChild extends JSWindowActorChild {
let shadowRoot = video.openOrClosedShadowRoot;
if (shadowRoot.firstChild && video != oldOverVideo) {
- if (video.getTransformToViewport().a == -1) {
- shadowRoot.firstChild.setAttribute("flipped", true);
- } else {
- shadowRoot.firstChild.removeAttribute("flipped");
- }
+ // TODO: Maybe this should move to videocontrols.js somehow.
+ shadowRoot.firstChild.toggleAttribute(
+ "flipped",
+ video.getTransformToViewport().a == -1
+ );
}
// It seems from automated testing that if it's still very early on in the
@@ -1812,7 +1812,7 @@ export class PictureInPictureChild extends JSWindowActorChild {
* 4) all active cues with VTTCue.line integer have VTTCue.snapToLines = true
* 5) all active cues with VTTCue.line percentage have VTTCue.snapToLines = false
*
- * vtt.jsm currently sets snapToLines to false if line is a percentage value, but
+ * vtt.sys.mjs currently sets snapToLines to false if line is a percentage value, but
* cues are still ordered by line. In most cases, snapToLines is set to true by default,
* unless intentionally overridden.
* @param allCuesArray {Array<VTTCue>} array of active cues