Closed Bug 706430 Opened 14 years ago Closed 14 years ago

Restoring a session without Panorama data fails with Panorama already loaded

Categories

(Firefox Graveyard :: Panorama, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 11

People

(Reporter: ttaubert, Assigned: ttaubert)

References

Details

Attachments

(1 file)

Restoring a session that contains no tab groups data over a current session that has Panorama loaded fails and throws errors. STR: 1) Load a clean profile (don't load Panorama). 2) Create two tabs. 3) Save the current session in a variable. 4) Open Panorama and create two groups with one tab per group. 5) Restore the saved session. Actual: Session is not correctly restored and errors are thrown. Expected: We have one group that contains all the tabs from step #2.
Attached patch patch v1Splinter Review
Added a simple check to see if we got valid tabData for the given tab. If not, there's no need to validate its groupID. Removed the tabItem._reconnect() call because that is handled by resumeReconnecting() later after GroupItems.reconstitute() has finished.
Attachment #577918 - Flags: review?(dietrich)
Comment on attachment 577918 [details] [diff] [review] patch v1 Review of attachment 577918 [details] [diff] [review]: ----------------------------------------------------------------- r=me ::: browser/components/tabview/groupitems.js @@ +2243,5 @@ > > + if (tabData) { > + let parentGroup = GroupItems.groupItem(tabData.groupID); > + > + // correct the tab's groupID if necessary please add more commentary about how and why it needs correction
Attachment #577918 - Flags: review?(dietrich) → review+
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 11
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: