Closed Bug 470355 Opened 16 years ago Closed 16 years ago

Restore Session misses most recent browsing.

Categories

(Firefox :: Session Restore, defect)

3.0 Branch
x86_64
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 366509

People

(Reporter: dk20, Unassigned)

Details

(Whiteboard: [worksforme?])

User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; Creative AutoUpdate v1.10.10)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 (.NET CLR 3.5.30729)

After a browser crash and choosing Restore Session the restored state is old. Recently openned tabs are lost and tabs that were closed are restored.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Version: unspecified → 3.0 Branch
Please visit http://support.mozilla.com/ to get support on your issue or try to follow https://bugzilla.mozilla.org/page.cgi?id=bug-writing.html . We'd at least have to know if you can actually reproduce this issue and if this also happens in Safe Mode (i.e. without any installed extensions). You might also want to check whether your virus/malware scanner or your desktop search engine lock Firefox's profile folder and if there are multiple sessionstore-#.js files in there (see the support site for how to find that folder).

As filed this bug could well be WORKSFORME, but with as little information it's rather INCOMPLETE (can be reopened should you have more to share).
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INCOMPLETE
It hasn't happenned since I tried Safe Mode, but the response to a crash has also been different and there have been fewer crashes. The Fiefox windows were just disappearing and then I started getting a dialog box saying This application has requested the Runtime to terminate it in an unusual way. I also haven't seen the Crash Reporter for a long time.

There is only one sessionstore.js. The directory is not locked.

It appears sessionstore.bak is only written when Firefox starts. It should be the previous version of sessionstore.js. That could cause the problem.

Also, I noticed right now that sessionstore.js hasn't been modified for 3 days.
I could try to attach WinDbg but you'll have to tell me what to look for. sessionstore.bak is 6 days old.
Status: RESOLVED → UNCONFIRMED
Hardware: x86 → x86_64
Resolution: INCOMPLETE → ---
(In reply to comment #2)
> It hasn't happenned since I tried Safe Mode, but the response to a crash has
> also been different and there have been fewer crashes.

Sounds like an add-on incompatibility. Try disabling all extensions and plugins and then enable them one by one, crashing Firefox in between and note with which extension/plugin enabled crashes result in different (wrong) behavior.

> It appears sessionstore.bak is only written when Firefox starts.

Indeed - and it's never written back, so you can ignore it.

> Also, I noticed right now that sessionstore.js hasn't been modified for 3 days.

This could also be due to an extension incompatibility (then again, it should have been updated while you were in Safe Mode, unless SessionStore has been disabled completely by setting browser.sessionstore.enabled to false in about:config ).

Do you get any errors in Tools -> Error Console if you've set javascript.options.showInConsole to true in about:config ?
Whiteboard: [worksforme?]
The error console shows a lot of these errors:

Error: [Exception... "Component is not available"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/components/nsSessionStore.js :: sss_saveState :: line 1908"  data: no]
Source File: file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/components/nsSessionStore.js
Line: 1908
That points towards Firebug. You might want to disable/update it.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → DUPLICATE
I don't think I have Firebug, or at least I don't know how to disable it. I read 366509 and did some searching and it seems to be an add-on for debugging FireFox. I've never installed it intentionally and it doesn't appear in the extensions or plugins lists.
Could also be due to a different extension. AFAICT bug 366509 was a clash between a very obscure core bug and an extension (usually Firebug) not disabling session history on an additional <browser> for displaying content (as e.g. a sidebar).

If you don't figure out which extension is causing the symptom in your case, you might want to update to Firefox 3.1 Beta 2 which contains an additional fix to prevent the error you've encountered.
You need to log in before you can comment on or make changes to this bug.