Closed
Bug 608158
Opened 14 years ago
Closed 14 years ago
Exiting Panorama when nothing but hidden groups and no app tabs, should create new tab
Categories
(Firefox Graveyard :: Panorama, defect, P3)
Firefox Graveyard
Panorama
Tracking
(Not tracked)
VERIFIED
FIXED
Firefox 4.0b8
People
(Reporter: iangilman, Assigned: raymondlee)
References
Details
Attachments
(1 file, 3 obsolete files)
8.88 KB,
patch
|
Details | Diff | Splinter Review |
It's possible to hit the Panorama exit (either the key or the button) when there are no tabs except those in hidden (closed but with option to undo) groups. If you do so, those hidden tabs will get flushed and the browser will close (since you have no more tabs in it).
Instead, when this happens, I feel it should create a new tab and drop you into that.
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → raymond
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•14 years ago
|
||
Once patch in bug 595521 lands, it wouldn't be possible to exit Panorama. Do we still want to create a new tab and drop user into that?
Depends on: 595521
Assignee | ||
Updated•14 years ago
|
Status: ASSIGNED → NEW
Comment 2•14 years ago
|
||
(In reply to comment #1)
> Once patch in bug 595521 lands, it wouldn't be possible to exit Panorama. Do
> we still want to create a new tab and drop user into that?
Nothing in that bug appears to keep Panorama from closing, unless you've explicitly added something to prevent that. In the case of bug 595521, Panorama should still close if you hit the Panorama button after you've closed the last group (with the undo close group button showing) unless this bug gets implemented.
That being the case, I do think we want the behavior Ian describes.
Assignee | ||
Updated•14 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•14 years ago
|
||
Attachment #487335 -
Flags: feedback?(ian)
Assignee | ||
Updated•14 years ago
|
Attachment #487335 -
Attachment description: v1 → v1 (Required patch for 595521)
Reporter | ||
Comment 4•14 years ago
|
||
Comment on attachment 487335 [details] [diff] [review]
v1 (Required patch for 595521)
Looks good. Comments:
* Seems like it would be good to count tabs in the test; make sure you start out and end up with the right number.
> let activeTabItem = this.getActiveTab();
>- if (!activeTabItem)
>- activeTabItem = gBrowser.selectedTab.tabItem;
>-
>+ if (!activeTabItem) {
>+ let tabItem = gBrowser.selectedTab.tabItem;
>+ if (tabItem && (!tabItem.parent || !tabItem.parent.hidden))
>+ activeTabItem = tabItem;
>+ }
>+
> if (activeTabItem)
>- activeTabItem.zoomIn();
>+ activeTabItem.zoomIn();
> else
> self.goToTab(gBrowser.selectedTab);
The check to see if gBrowser.selectedTab is in a hidden group is good, but unfortunately it doesn't really cover it, as we'll fall through to the last line above which tries to go to it anyway.
Instead, if the parent is hidden, pick another tab that's not hidden.
Attachment #487335 -
Flags: feedback?(ian) → feedback-
Assignee | ||
Comment 5•14 years ago
|
||
Attachment #487335 -
Attachment is obsolete: true
Attachment #487522 -
Flags: feedback?(ian)
Reporter | ||
Comment 6•14 years ago
|
||
Comment on attachment 487522 [details] [diff] [review]
v1 (Required patch for 595521)
>+ if (!tabItem.parent || !tabItem.parent.hidden) {
>+ activeTabItem = tabItem;
>+ } else { // has parent and it is not hidden
That should read "has parent and it is hidden", right?
Otherwise looks good.
Attachment #487522 -
Flags: feedback?(ian) → feedback+
Assignee | ||
Comment 7•14 years ago
|
||
Updated the comment to make it more clear.
+ } else { // set active tab item if there is at least one unhidden group
+ if (unhiddenGroups.length > 0)
+ activeTabItem = unhiddenGroups[0].getActiveTab();
+ }
f=ian
Attachment #487522 -
Attachment is obsolete: true
Attachment #487794 -
Flags: review?(dao)
Updated•14 years ago
|
Priority: -- → P3
Reporter | ||
Updated•14 years ago
|
Attachment #487794 -
Flags: review?(dao)
Attachment #487794 -
Flags: review+
Attachment #487794 -
Flags: approval2.0?
Assignee | ||
Comment 8•14 years ago
|
||
Sent it to try b455d061e8d6 and waiting for the result.
Assignee | ||
Comment 9•14 years ago
|
||
(In reply to comment #8)
> Sent it to try b455d061e8d6 and waiting for the result.
Passed Try
Assignee | ||
Comment 10•14 years ago
|
||
Could someone give approval2.0 to this please?
Comment 11•14 years ago
|
||
Comment on attachment 487794 [details] [diff] [review]
v1
a+uir=beltzner
Attachment #487794 -
Flags: approval2.0? → approval2.0+
Reporter | ||
Comment 12•14 years ago
|
||
Raymond, what's the status of this bug?
Assignee | ||
Comment 13•14 years ago
|
||
Sent it to try and waiting for the rssult
Attachment #487794 -
Attachment is obsolete: true
Comment 15•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b8
Updated•9 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•