Closed Bug 459651 Opened 16 years ago Closed 16 years ago

about:sessionrestore shouldn't list about:sessionrestore as single tab to restore

Categories

(Firefox :: Session Restore, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 3.1b2

People

(Reporter: ted, Assigned: zeniko)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached image confusing session restore page (deleted) —
If you crash, then restart Firefox and get the about:sessionrestore page, then wait a minute, and crash again, you can get about:sessionrestore to list about:sessionrestore as your tab from the previous session. Restoring this session brings up about:sessionrestore showing your tabs from two sessions ago. This is pretty confusing. We should just skip that step in the middle and offer to restore the original set of tabs.
While we could unwrap crash states containing only about:sessionrestore, I'm not sure what to do when you open a new tab before crashing again. What would you expect in that case?
I think if the user opens any other tabs or windows, then restoring the about:sessionrestore tab is a sane behavior. If there's only one tab in the session, however, and it contains about:sessionrestore, we should just get back to the original restore page.
Attached patch don't wrap a single about:sessionrestore page (obsolete) (deleted) — Splinter Review
Attachment #342909 - Flags: review?(dietrich)
Comment on attachment 342909 [details] [diff] [review] don't wrap a single about:sessionrestore page r=me. can you tuck all the "should restore?" determination code in a separate method?
Attachment #342909 - Flags: review?(dietrich) → review+
Assignee: nobody → zeniko
Attachment #342909 - Attachment is obsolete: true
Keywords: checkin-needed
Attachment #342923 - Attachment description: for check-in → for check-in [Checkin: Comment 6]
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: in-testsuite-
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.1b2
Sorry, but this still happens with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b2pre) Gecko/20081017 Minefield/3.1b2pre ID:20081017020232 I can reproduce it by open about:sessionrestore and crashing the browser (e.g. by the use of the crash me extension). After the restart about:sessionrestore lists itself to be restored.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) Gecko/20081017 Minefield/3.1b2pre This is fixed as expected. Note that you're still able to get about:sessionrestore listing itself when you had _other_ tabs or windows opened besides about:sessionrestore at the moment of the crash (cf. comment #2).
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
Summary: possible to wind up with about:sessionrestore listing about:sessionrestore as your session to restore → about:sessionrestore shouldn't list about:sessionrestore as single tab to restore
I can verify this fixed if I follow a different set of STR than Henrik does in Comment 7. If I crash the browser x2 and actually generate the about:sessionrestore page on its own and then crash again, when the browser restarts I do not see the about:sessionrestore listing listing that page. I am not sure if Henrik sees it because he explicitly entered it into the URL bar versus having it auto generated because of a crash.
Status: RESOLVED → VERIFIED
Seems that this was the reason. I can't see it anymore.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: