Open Bug 598091 Opened 14 years ago Updated 14 years ago

Close an "untitled" tab and reopening it breaks the tab

Categories

(SeaMonkey :: Tabbed Browser, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: morac, Unassigned)

Details

(Keywords: regression)

With the preference set to show a blank tab at start up open a bunch of blank tabs.  Close these tabs (don't close the last one or browser will close).  Restore the closed tabs.  At this point the tabs will be broken and can't be closed or used.  

The following exception is thrown when trying to restore the blank tab from the closed tab list:

Error: uncaught exception: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIWebNavigation.goBack]"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame :: chrome://navigator/content/tabbrowser.xml :: restoreTab :: line 1574"  data: no]

This then leads to other exceptions:

Error: this.mTabListeners[this.tabContainer.selectedIndex] is undefined
Source File: chrome://navigator/content/tabbrowser.xml
Line: 1011

Error: (void 0) is undefined
Source File: chrome://navigator/content/tabbrowser.xml
Line: 1627
Keywords: regression
Does this still occur when you set |browser.tabs.max_tabs_undo| to zero?
As far as I can tell it does not occur with browser.tabs.max_tabs_undo set to 0.

Oddly though it does store the "untitled" tabs in the closed tab list and they can be restored.  Actually it stored all closed tabs with max_tabs_undo set to 0 which also seems like a bug to me.
You need to log in before you can comment on or make changes to this bug.