Open Bug 595729 Opened 11 years ago Updated 11 years ago

uncaught exception from restoreLastSession


(Firefox :: Session Restore, defect)

Not set




(Reporter: zpao, Unassigned)



Error: uncaught exception: [Exception... "'[JavaScript Error: "aTabs[ex - 1] is undefined" {file: "jar:file:///Applications/!/components/nsSessionStore.js" line: 2236}]' when calling method: [nsISessionStore::restoreLastSession]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: chrome://browser/content/browser.js :: restoreLastSession :: line 12990"  data: yes]

This is happening consistently with a session I have in my nightly, I'll investigate with a debug build and track it down.
It's coming from here:

Something related to TabCandy and being in a weird state with hidden tabs... Apparently I had 0 unhidden tabs, and so we try to access aTabs[-1] :(
I'll see if I can get some STR from a clean session.

Interesting that the error says "aTabs[ex - 1] is undefined" instead of what's actually in the code, which is "aTabs[unhiddenTabs - 1]" Perhaps something from TM/JM merge?
I haven't seen this since (though tbh, I also haven't really used that feature much). I haven't seen any reports of it either, but we haven't hit b7 yet so I'll leave this open until this feature goes out to a wider audience.
You need to log in before you can comment on or make changes to this bug.