Don't try to update the debugging options while the browser is shutting down (bug 1054325); r=mratcliffe

--HG--
extra : rebase_source : c75b9802b3b30c5ddb6eecaa33d99af0170c80b4
This commit is contained in:
Panos Astithas 2014-08-27 17:17:37 +03:00
parent 39352b1eb9
commit 10ef7a7f9c

View File

@ -1082,6 +1082,11 @@ TabActor.prototype = {
// Wait a tick so that the response packet can be dispatched before the
// subsequent navigation event packet.
Services.tm.currentThread.dispatch(DevToolsUtils.makeInfallible(() => {
// This won't work while the browser is shutting down and we don't really
// care.
if (Services.startup.shuttingDown) {
return;
}
this.webNavigation.reload(force ? Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE
: Ci.nsIWebNavigation.LOAD_FLAGS_NONE);
}, "TabActor.prototype.onReload's delayed body"), 0);