Closed
Bug 609260
Opened 14 years ago
Closed 14 years ago
sessionstore.js is written so late that session is not (properly) saved
Categories
(Firefox :: Session Restore, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: kdevel, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b8pre) Gecko/20100101 Firefox/4.0b8pre
Build Identifier: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b8pre) Gecko/20100101 Firefox/4.0b8pre
The file sessionstore.js seems to be written a few seconds after the session's state has changed. When the browser crashed during this lag firefox will not recover the last state before the crash.
Reproducible: Always
Steps to Reproduce:
1. monitor the file modification date of sessionstore.js
2. surf the web
3. observe when sessionstore.js's date changes after you change the session's state.
Actual Results:
There is a delay of some seconds before the current state is written to sessionstore.js.
Expected Results:
The is no such delay.
Comment 1•14 years ago
|
||
There's a tradeoff between saving immediately (which causes a major performance hit) and saving every few seconds (which may lose a few seconds of your browsing).
Component: General → Session Restore
QA Contact: general → session.restore
Comment 2•14 years ago
|
||
This is by design. As Nickolay mentioned, there's a tradeoff. Losing at most 15 seconds (by default) of work in the browser is not that bad.
When quitting, we'll save everything, so there shouldn't be a loss of state then, only when crashing.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
I now encounter a "phantom" window after regularly qutting and restarting FF. It seems that qutting does not necessarily save the state of already closed browser windows.
I'll try to prepare a testcase.
Status: RESOLVED → UNCONFIRMED
Resolution: WONTFIX → ---
I found out that certain values in localstore.rdf caused the windows to "hang" after a restart.
1. Start with fresh profile.
2. Disable default browser checks.
3. Select "Show my windows and tabs from last time."
4. Open testcase. Allow Popups for bug...
5. Finish FF
6. Copy localstore.rdf into profile folder.
7. Restart FF. (-> page is loaded, windows pop up and disappear).
8. Close FF immediately.
9. Restart FF. (-> same a 7, but windows hang).
Sorry for that lengthy testcase.
Comment 7•14 years ago
|
||
There is an option to save your session more frequently. In about:config, you can set browser.sessionstore.interval to another value. The interval is specified in milliseconds and to reduce it simply enter a smaller value.
What to you mean by "2. Disable default browser checks." in comment 6?
In "There is no such delay" I do not expect something to be done "more frequently". I would like to see the URL in the session store always BEFORE FF crashes. (MF/FF crash extremely rarely)
How is that dialog named which informs about FF not being the operating systems default browser?
Comment 9•14 years ago
|
||
Stefan,
per zpao " if stefan can still reproduce [using Firefox 7 or newer] then i'm interested (though the bug as originally reported should be wontfix)"
Reporter | ||
Comment 10•14 years ago
|
||
I can't reproduce comment #6 step 9 hang with nightly 2011-10-11-03-10-00-mozilla-central.
Comment 11•14 years ago
|
||
thanks for the update.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•