diff --git a/browser/base/content/tabbrowser-tab.js b/browser/base/content/tabbrowser-tab.js index 09b088d59a90..7403bc568e3b 100644 --- a/browser/base/content/tabbrowser-tab.js +++ b/browser/base/content/tabbrowser-tab.js @@ -453,16 +453,6 @@ if (this.multiselected) { gBrowser.toggleMuteAudioOnMultiSelectedTabs(this); } else { - if ( - event.target.classList.contains("tab-icon-sound") && - this.pictureinpicture - ) { - // When Picture-in-Picture is open, we repurpose '.tab-icon-sound' as - // an inert Picture-in-Picture indicator, and expose the '.tab-icon-overlay' - // as the mechanism for muting the tab, so we don't need to handle clicks on - // '.tab-icon-sound' in this case. - return; - } this.toggleMuteAudio(); } return; diff --git a/browser/base/content/tabbrowser.js b/browser/base/content/tabbrowser.js index 796876bba3aa..e7a936f9e946 100644 --- a/browser/base/content/tabbrowser.js +++ b/browser/base/content/tabbrowser.js @@ -5392,11 +5392,7 @@ affectedTabsLength, gTabBrowserBundle.GetStringFromName("tabs.closeTabs.tooltip") ).replace("#1", affectedTabsLength); - } - // When Picture-in-Picture is open, we repurpose '.tab-icon-sound' as - // an inert Picture-in-Picture indicator, so we should display - // the default tooltip - else if (tab._overPlayingIcon && !tab.pictureinpicture) { + } else if (tab._overPlayingIcon) { let stringID; if (tab.selected) { stringID = tab.linkedBrowser.audioMuted