Closed
Bug 606657
Opened 15 years ago
Closed 14 years ago
moveTabToGroupItem fails if move the only tab in a group to the same group
Categories
(Firefox Graveyard :: Panorama, defect)
Firefox Graveyard
Panorama
Tracking
(Not tracked)
VERIFIED
FIXED
Future
People
(Reporter: tabutils+bugzilla, Assigned: ttaubert)
Details
Attachments
(1 file, 3 obsolete files)
|
4.11 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0b8pre) Gecko/20101022 Firefox/4.0b8pre
Build Identifier: Mozilla/5.0 (Windows NT 5.1; rv:2.0b8pre) Gecko/20101022 Firefox/4.0b8pre
When implementing a "Move Tabs to New Group" feature, I need to move the context tab to a new group first, then move all needed tabs to that group. If the context tab happens to be the first tab in the tabs, it leads to a failure.
Reproducible: Always
Steps to Reproduce:
Supposing you have not opened an app tab:
TabView.moveTabTo(gBrowser.mTabs[0], null);
TabView.moveTabTo(gBrowser.mTabs[0], gBrowser.mTabs[0].tabItem.parent.id);
Updated•15 years ago
|
QA Contact: general → tabcandy
Comment 1•15 years ago
|
||
This would be great to have for beta 8, though I'm not sure we'll get to it. We currently plan to do our most intensive API work post-ff4.0.
I'll leave this bug blocking beta8 for the time being to keep it on our minds.
Updated•15 years ago
|
Target Milestone: --- → Future
| Assignee | ||
Comment 2•14 years ago
|
||
This should be as simple as comparing the tab's current group id with the target group's id. If they're equal do nothing.
Assignee: nobody → tim.taubert
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #500626 -
Flags: review?(Olli.Pettay)
Comment 3•14 years ago
|
||
Comment on attachment 500626 [details] [diff] [review]
patch v1
I'm not familiar with this code.
Attachment #500626 -
Flags: review?(Olli.Pettay) → review?(ian)
Comment 5•14 years ago
|
||
Comment on attachment 500626 [details] [diff] [review]
patch v1
>+ TabView.moveTabTo(tab, null);
This line shouldn't be necessary; entering the test we should have one tab and one group, and the tab should be in the group. Is this not what you're finding?
Otherwise looks good. R+ with that addressed.
Attachment #500626 -
Flags: review?(ian) → review+
| Assignee | ||
Comment 6•14 years ago
|
||
Attachment #500626 -
Attachment is obsolete: true
| Assignee | ||
Comment 7•14 years ago
|
||
Attachment #501277 -
Attachment is obsolete: true
Attachment #501368 -
Flags: approval2.0?
| Assignee | ||
Comment 8•14 years ago
|
||
Pushed to try. Passed.
Comment 9•14 years ago
|
||
Comment on attachment 501368 [details] [diff] [review]
patch v3 (test now correctly cleans up its environment)
a=beltzner
Attachment #501368 -
Flags: approval2.0? → approval2.0+
| Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 11•14 years ago
|
||
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
•