Allow to unmute tab always, even if the sound is not played #1082

This commit is contained in:
YUKI Hiroshi 2016-03-10 16:56:24 +09:00
parent 4adc6803f9
commit 9770fa7bd8

View File

@ -4497,7 +4497,10 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
aChild.toggleMuteAudio();
}, this);
}
return this.getTabValue(aTab, this.kREALLY_SOUND_PLAYING) != 'true';
return (
this.getTabValue(aTab, this.kREALLY_SOUND_PLAYING) != 'true' ||
aTab.getAttribute('muted') == 'true' // allow to unmute tab always, even if the sound is not played
);
},
correctChildTabsOrderWithDelay : function TSTBrowser_correctChildTabsOrderWithDelay(aTab)