Bug 932880 - Make preNest/postNest not throw when the browser is abruptly shut down. r=rcampbell

This commit is contained in:
Panos Astithas 2013-10-31 23:10:22 +02:00
parent a763cbfef9
commit bfc1ea5539

View File

@ -767,7 +767,7 @@ BrowserTabActor.prototype = {
* Prepare to enter a nested event loop by disabling debuggee events.
*/
preNest: function BTA_preNest() {
if (!this.browser) {
if (!this.window) {
// The tab is already closed.
return;
}
@ -782,7 +782,7 @@ BrowserTabActor.prototype = {
* Prepare to exit a nested event loop by enabling debuggee events.
*/
postNest: function BTA_postNest(aNestData) {
if (!this.browser) {
if (!this.window) {
// The tab is already closed.
return;
}