Have you ever encountered this error in Firebug while using FF (Firefox)?
Code:
[Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: file:///usr/lib/firefox/components/nsSessionStore.js :: sss_saveState :: line 1753" data: no] file:///usr/lib/firefox/components/nsSessionStore.js Line 1753 |
Follow up:
According to a post on Mozillazine , this started appearing since Firefox 2.0.0.8.
Now, there are many possible causes (and fixes) for this problem, but I have found that if you encounter this error and if it comes from firefox/components/nsSessionStore.js. This means that your session store has been corrupted.
What does session store do? Well, when your browser crashes (or force quit), and you fire it up again, session store will loaded the last saved opened URLs, tabs and http sessions (basically the whole state of the browser it last saved) that were present before FF went belly up. Think Word’s autorecovery. Great feature and FF 3 allows you to save the session when quiting FF, which cant be done with FF 2.x at the moment.
The Fix?
Well I have found that clearing the FF sessions fixes the problem. This means that you simply close FF. I also noticed another symptom with this problem is that it occurs, force quitting Firefox and starting FF again will bring up an older saved state.


Patrick
1. setting
"Tools → Options → Main → Startup → When Firefox starts"
to "Show my windows and tabs from last time"
2. changing my behaviour to close FF from the file menu
before exiting Windows.
This appearantly leads to a clean save/resume process instead of recovery from an emergency state.
Whether or not both points are mandatory I dont't know.
this._writeFile(this._sessionFile, oState.toSource());
to:
this._writeFile(this._sessionFile, "(" + this._toJSONString(oState) + ")");
Problem fixed. ;)