Closed Bug 711578 Opened 14 years ago Closed 14 years ago

Session restore doesn't work for initial Fennec session crash

Categories

(Firefox for Android Graveyard :: General, defect, P3)

ARM
Android
defect

Tracking

(firefox13 verified, fennec11+)

VERIFIED FIXED
Firefox 13
Tracking Status
firefox13 --- verified
fennec 11+ ---

People

(Reporter: bnicholson, Assigned: bnicholson)

References

Details

Attachments

(1 file)

We create the sessionstore.js file on the first Fennec load, then copy it to sessionstore.bak on the second load. Since sessionstore.bak is required for the session restore, this means we won't restore the session if we crash on the first Fennec load.
OS: Linux → Android
Hardware: All → ARM
Priority: -- → P3
Brian, what does first load mean? Since we flipped to the native UI on trunk any crash of Fennec doesn't restore my session. It was working properly with the old XUL ui. Is that a different issue from that one?
(In reply to Henrik Skupin (:whimboo) from comment #1) > Brian, what does first load mean? Since we flipped to the native UI on trunk > any crash of Fennec doesn't restore my session. It was working properly with > the old XUL ui. Is that a different issue from that one? Session restore was just landed yesterday (bug 697858). "First load" means the first time Fennec is opened without any existing data. Also, XUL Fennec does have this bug. STR: 1) Do a fresh Fennec install (either Force stop then clear data, or uninstall then reinstall). 2) Open Fennec. 3) Browse to any page. 4) Force close Fennec. 5) Open Fennec again. Expected: The page from step 3 is restored. Actual: No restore occurs.
I will wait until bug 697858 has been fully fixed before continuing here. Reason is that with yesterdays build session restore doesn't work at all for me. So I cannot give any good feedback here.
tracking-fennec: --- → 11+
Assignee: nobody → bnicholson
Attached patch patchSplinter Review
Our current algorithm is: - on init, see if sessionstore.js exists - if so, copy it to sessionstore.bak - write session to sessionstore.js during browser use - delete sessionstore.bak on quit - if sessionstore.bak exists, we know we crashed This is a problem because it takes two initializations for the .bak file to appear (sessionstore.js is created the first time, and sessionstore.bak is copied over after that). This patch uses a new algorithm: - on init, see if sessionstore.js exists - if so, move it to sessionstore.bak - write session to sessionstore.js during browser use - move sessionstore.js to sessionstore.bak on quit - if sessionstore.js exists, we know we crashed
Attachment #596735 - Flags: review?(mark.finkle)
Attachment #596735 - Flags: review?(mark.finkle) → review+
Comment on attachment 596735 [details] [diff] [review] patch [Approval Request Comment] Fixes session restore on first Fennec run. Low risk.
Attachment #596735 - Flags: approval-mozilla-beta?
Attachment #596735 - Flags: approval-mozilla-aurora?
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 13
Comment on attachment 596735 [details] [diff] [review] patch [Triage Comment] Mobile only - approved for Aurora 12 and Beta 11.
Attachment #596735 - Flags: approval-mozilla-beta?
Attachment #596735 - Flags: approval-mozilla-beta+
Attachment #596735 - Flags: approval-mozilla-aurora?
Attachment #596735 - Flags: approval-mozilla-aurora+
Comment on attachment 596735 [details] [diff] [review] patch Clearing approval for Aurora 12 and Beta 11 because we are not currently planning a Native Fennec release of these versions. If this changes in the future, we will likely do a mass uplift of all native fennec changes. For now, let's get these bugs off the channel triage radar. [Filter on the string "mbrubeck-bugspam" if you want to delete all of these emails at once.]
Attachment #596735 - Flags: approval-mozilla-beta+
Attachment #596735 - Flags: approval-mozilla-aurora+
Verified fixed on: Firefox 13.0a1 (2012-02-29) 20120229031108 http://hg.mozilla.org/mozilla-central/rev/30b4f99a137c -- Device: Samsung Galaxy S2 OS: Android 2.3.4
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: