Closed
Bug 631936
Opened 13 years ago
Closed 13 years ago
Flaw in GroupItem_childHit logic: we are calling collapse on groups every time we zoom in on a child tab, even if the group is not stacked!
Categories
(Firefox Graveyard :: Panorama, defect)
Firefox Graveyard
Panorama
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: mitcho, Assigned: mitcho)
References
Details
(Whiteboard: [cleanup][qa-])
Attachments
(1 file)
755 bytes,
patch
|
Details | Diff | Splinter Review |
In GroupItem_childHit:
> if (!this._isStacked || this.expanded) {
> return {
> shouldZoom: true,
> callback: function() {
> self.collapse();
> }
> };
> }
This if condition is wrong: if, for example, the group isn't even stacked, we will send back this callback so that the group is collapsed after we zoom in on a child tab.
Verified that this indeed is what currently happens. Luckily collapse doesn't do anything if the group is not expanded.
Assignee | ||
Comment 1•13 years ago
|
||
Not sure that there's a good way to write a test for this without modifying the collapse method in the global scope from within the test... seems a bit sketchy, even if we do it in a new window just for this test.
Assignee | ||
Comment 2•13 years ago
|
||
Okay "in the global scope" above doesn't totally make sense, but hopefully you know what I mean. :)
Comment 3•13 years ago
|
||
As discussed in bug 631934, let's just make this change there.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Updated•12 years ago
|
Attachment #510154 -
Flags: review?(ian)
Updated•8 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•