Bug 1530367 - Toggle audio playback when clicking on blocked media in pinned tabs. r=dao a=lizzard
authorJared Wein <jwein@mozilla.com>
Thu, 28 Feb 2019 04:27:42 +0000
changeset 516271 345a12b24b69a09d6eb0c8fe7df3f9ae4fa0cb9a
parent 516270 de039c1269c376d1468a09f2d4ca334df7dbef38
child 516272 ca92748672f1763548d554c1b5711d25318c33dc
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao, lizzard
bugs1530367
milestone66.0
Bug 1530367 - Toggle audio playback when clicking on blocked media in pinned tabs. r=dao a=lizzard This attribute was overlooked previously when moving away from _overPlayingIcon. Differential Revision: https://phabricator.services.mozilla.com/D21436
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -2423,17 +2423,18 @@
           let updatePositionalAttr = gBrowser.selectedTab == this;
 
           gBrowser.clearMultiSelectedTabs(updatePositionalAttr);
         }
 
         if (event.originalTarget.classList.contains("tab-icon-sound") ||
             (event.originalTarget.classList.contains("tab-icon-overlay") &&
              (event.originalTarget.hasAttribute("soundplaying") ||
-              event.originalTarget.hasAttribute("muted")))) {
+              event.originalTarget.hasAttribute("muted") ||
+              event.originalTarget.hasAttribute("activemedia-blocked")))) {
           if (this.multiselected) {
             gBrowser.toggleMuteAudioOnMultiSelectedTabs(this);
           } else {
             this.toggleMuteAudio();
           }
           return;
         }