mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
dont trigger PiP for tabs that are muted
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
diff --git a/toolkit/components/pictureinpicture/PictureInPicture.sys.mjs b/toolkit/components/pictureinpicture/PictureInPicture.sys.mjs
|
||||
index 5da0404b2672ba8cce7bcf808bf2373474776654..3b93217b38f25f54d7ef44d151e314bc1c5e5ce3 100644
|
||||
index 5da0404b2672ba8cce7bcf808bf2373474776654..6a22fce1212bd6ac6bdd4962b8247c3db956f0eb 100644
|
||||
--- a/toolkit/components/pictureinpicture/PictureInPicture.sys.mjs
|
||||
+++ b/toolkit/components/pictureinpicture/PictureInPicture.sys.mjs
|
||||
@@ -494,7 +494,7 @@ export var PictureInPicture = {
|
||||
@@ -126,6 +126,9 @@ export class PictureInPictureToggleParent extends JSWindowActorParent {
|
||||
if (browser.ownerGlobal.gBrowser.selectedBrowser == browser) {
|
||||
break;
|
||||
}
|
||||
+ if (browser.ownerGlobal.gBrowser.getTabForBrowser(browser).muted) {
|
||||
+ break;
|
||||
+ }
|
||||
let actor = browsingContext.currentWindowGlobal.getActor(
|
||||
"PictureInPictureLauncher"
|
||||
);
|
||||
@@ -494,7 +497,7 @@ export var PictureInPicture = {
|
||||
// focus the tab's window
|
||||
tab.ownerGlobal.focus();
|
||||
|
||||
|
Reference in New Issue
Block a user