The default bug view has changed. See this FAQ.

Restoring a session without Panorama data fails with Panorama already loaded

RESOLVED FIXED in Firefox 11

Status

Firefox Graveyard
Panorama
RESOLVED FIXED
5 years ago
a year ago

People

(Reporter: ttaubert, Assigned: ttaubert)

Tracking

Trunk
Firefox 11

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
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.
(Assignee)

Comment 1

5 years ago
Created attachment 577918 [details] [diff] [review]
patch v1

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+
(Assignee)

Comment 3

5 years ago
https://hg.mozilla.org/integration/fx-team/rev/020c1f61f9d4
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 11
(Assignee)

Comment 4

5 years ago
https://hg.mozilla.org/mozilla-central/rev/020c1f61f9d4
Status: ASSIGNED → RESOLVED
Last Resolved: 5 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.