mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 932880 - Make preNest/postNest not throw when the browser is abruptly shut down. r=rcampbell
This commit is contained in:
parent
a763cbfef9
commit
bfc1ea5539
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user