Closed Bug 791051 Opened 12 years ago Closed 12 years ago

Session restore won't fail if there are no tabs in JSON

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox15 affected, firefox16 verified, firefox17 fixed, firefox18 verified)

VERIFIED FIXED
Firefox 18
Tracking Status
firefox15 --- affected
firefox16 --- verified
firefox17 --- fixed
firefox18 --- verified

People

(Reporter: bnicholson, Assigned: bnicholson)

Details

Attachments

(1 file)

I ran into this while trying the STR in bug 789867:
1) Open Fennec
2) Go to any page
3) Push home and OOM Fennec
4) Reopen Fennec
5) While Fennec is loading, repeatedly hit the stop button to prevent the page from loading
6) Once the throbber has stopped and at a blank screen, push home and OOM Fennec again
7) Reopen Fennec

This results in the following sessionstore state:
{"windows":[{"tabs":[],"selected":1,"closedTabs":[]}]}

which happens because we clear the session data at startup, and we stopped the restored tab from loading, so no tabs get added. After step 7 above, the throbber spins endlessly and nothing loads in the browser. We should make sure there's at least one tab being restored.
Attachment #660916 - Flags: review?(mark.finkle)
Attachment #660916 - Flags: review?(mark.finkle) → review+
Comment on attachment 660916 [details] [diff] [review]
Make sure tab exists for session restore

[Approval Request Comment]
Regression caused by (bug #): 
User impact if declined: Startup could hang (the throbber loops forever and the user can't load any pages)
Testing completed (on m-c, etc.): just landed
Risk to taking this patch (and alternatives if risky): very low
Attachment #660916 - Flags: approval-mozilla-release?
Attachment #660916 - Flags: approval-mozilla-beta?
Attachment #660916 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/9a7b25bc580e
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 18
Setting status-firefox18 to fixed - Scoobidiver we are going to rely on status flags more than Target Milestones in the future so the best practice is not to clear a flag, but to set to fixed.
Attachment #660916 - Flags: approval-mozilla-beta?
Attachment #660916 - Flags: approval-mozilla-beta+
Attachment #660916 - Flags: approval-mozilla-aurora?
Attachment #660916 - Flags: approval-mozilla-aurora+
Comment on attachment 660916 [details] [diff] [review]
Make sure tab exists for session restore

We're not re-building 15 for this so minus on mozilla-release approval request.
Attachment #660916 - Flags: approval-mozilla-release? → approval-mozilla-release-
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: