Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug 669289 - Fennec UI is unresponsive and browser becomes unusable i…

…f a restart is triggered with a single blank tab open [r=mfinkle, a=drivers]
  • Loading branch information...
commit cf2c1cb76f8ffb0883876a69548f86905a27077b 1 parent cf5e652
@mbrubeck mbrubeck authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 mobile/chrome/content/browser.js
View
8 mobile/chrome/content/browser.js
@@ -353,8 +353,12 @@ var Browser = {
let dummyCleanup = {
observe: function() {
Services.obs.removeObserver(dummyCleanup, "sessionstore-windows-restored");
- dummy.chromeTab.ignoreUndo = true;
- Browser.closeTab(dummy, { forceClose: true });
+ if (Browser.tabs.length > 1) {
+ dummy.chromeTab.ignoreUndo = true;
+ Browser.closeTab(dummy, { forceClose: true });
+ } else {
+ Browser.selectedTab = dummy;
+ }
}
};
Services.obs.addObserver(dummyCleanup, "sessionstore-windows-restored", false);
Please sign in to comment.
Something went wrong with that request. Please try again.