Bug 1191081 - Part 1: Mute the browser after restoring from a crash if it was muted before; r=jaws

This commit is contained in:
Ehsan Akhgari 2015-08-04 17:58:58 -04:00
parent dac6c24fcf
commit 2bec2e6c53

View File

@ -669,6 +669,11 @@
// If the browser is loading it must not be crashed anymore // If the browser is loading it must not be crashed anymore
this.mTab.removeAttribute("crashed"); this.mTab.removeAttribute("crashed");
// If the browser was previously muted, we should restore the muted state.
if (this.mTab.hasAttribute("muted")) {
this.mTab.linkedBrowser.mute();
}
} }
if (this._shouldShowProgress(aRequest)) { if (this._shouldShowProgress(aRequest)) {