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)
Tracking
(firefox13 verified, fennec11+)
VERIFIED
FIXED
Firefox 13
People
(Reporter: bnicholson, Assigned: bnicholson)
References
Details
Attachments
(1 file)
|
6.62 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
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.
Updated•14 years ago
|
OS: Linux → Android
Hardware: All → ARM
Updated•14 years ago
|
Priority: -- → P3
Comment 1•14 years ago
|
||
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?
| Assignee | ||
Comment 2•14 years ago
|
||
(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.
Comment 3•14 years ago
|
||
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.
Updated•14 years ago
|
tracking-fennec: --- → 11+
| Assignee | ||
Updated•14 years ago
|
Assignee: nobody → bnicholson
| Assignee | ||
Comment 4•14 years ago
|
||
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)
Updated•14 years ago
|
Attachment #596735 -
Flags: review?(mark.finkle) → review+
| Assignee | ||
Comment 5•14 years ago
|
||
| Assignee | ||
Comment 6•14 years ago
|
||
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?
Comment 7•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 13
Comment 8•14 years ago
|
||
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 9•14 years ago
|
||
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+
Comment 10•14 years ago
|
||
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
status-firefox13:
--- → verified
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•