Permalink
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...
1 parent cf5e652 commit cf2c1cb76f8ffb0883876a69548f86905a27077b @mbrubeck mbrubeck committed Aug 10, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 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);

0 comments on commit cf2c1cb

Please sign in to comment.