Closed Bug 639843 Opened 15 years ago Closed 15 years ago

Port Bug 628270 [Undo close (hidden) tab causes panorama and session restore(?) to break unrecoverably]

Categories

(SeaMonkey :: Session Restore, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: misak.bugzilla, Assigned: misak.bugzilla)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
This is hard to reproduce on SeaMonkey, but will be nice to pick up to keep in sync. From parent bug: Prerequisites: clean profile STR: 1. Navigate some pages in a few tabs 2. Go to panorama and close one of the tabs 3. Return to normal mode 4. Go back to panorama then reopen the previously closed tab (CMD + SHIFT + T) Behavior: The reopened tab is isolated from its native group and located in the upper left corner of the panorama content area. It is mandatory to close and reopen panorama to reproduce this. If not, the tab position will not hang, but you will shortly see that it appears on the left upper corner for a second, then it's moved to its place in the group. This works on win7, and I could reproduce it only on mac os x 10.6 Note: see screenshot
Attachment #517749 - Flags: review?(neil)
Comment on attachment 517749 [details] [diff] [review] patch >- >- // make sure to restore the selected tab first (if any) >- if (aSelectTab-- && aTabs[aSelectTab]) { >- aTabs.unshift(aTabs.splice(aSelectTab, 1)[0]); >- aTabData.unshift(aTabData.splice(aSelectTab, 1)[0]); >- tabbrowser.selectedTab = aTabs[0]; >- } >+ } >+ >+ // make sure to restore the selected tab first (if any) >+ if (aSelectTab-- && aTabs[aSelectTab]) { >+ aTabs.unshift(aTabs.splice(aSelectTab, 1)[0]); >+ aTabData.unshift(aTabData.splice(aSelectTab, 1)[0]); >+ tabbrowser.selectedTab = aTabs[0]; [I probably wouldn't have bothered with this change. If there's only one tab to restore, it must be the first tab!]
Attachment #517749 - Flags: review?(neil) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: