Iceweasel doesn't "restore session"
In a freshly installed copy of Iceweasel (without any addons), the Error
Error: [Exception... "Component is not available" nsresult: "0x80040111
(NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
file:///usr/lib/iceweasel/components/nsSessionStore.js :: sss_saveState
:: line 1909" data: no]
Source File: file:///usr/lib/iceweasel/components/nsSessionStore.js
When iceweasel is killed (from the terminal) or is closed using the "x"
sign at its title bar, it doesn't restore the exited session when it's
started the next time. On the other hand, if it I close firefox from
File manu-> Quit, then it restores the session next time.
The restored sessions occur this way:
Point A: iceweasel is closed from file menu->quit
point B: Iceweasel is restarted. Session A is restored.
Point C: Iceweasel is closed from "x" button at title bar
point d: Iceweasel is restarted. Session A is restored again. Session C
is lost, error console shows error.
How do I get rid of this problem? Isn't iceweasel supposed to restore
its session every time it's closed unexpectedly?