Closed
Bug 669762
Opened 13 years ago
Closed 13 years ago
TabItem has incorrect close handler after unsuccessful TabItem.close() call
Categories
(Firefox Graveyard :: Panorama, defect)
Firefox Graveyard
Panorama
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 8
People
(Reporter: ttaubert, Assigned: ttaubert)
Details
Attachments
(1 file)
3.22 KB,
patch
|
ehsan.akhgari
:
review+
raymondlee
:
feedback+
|
Details | Diff | Splinter Review |
GroupItem.destroy() re-adds the following "close" event handler when a TabItem could not be closed: > child.addSubscriber(self, "close", function() { > self.remove(child); > }); https://mxr.mozilla.org/mozilla-central/source/browser/base/content/tabview/groupitems.js#828 This is very different from the normal close handler: > item.addSubscriber(this, "close", function() { > let count = self._children.length; > let dontArrange = self.expanded || !self.shouldStack(count); > let dontClose = !item.closedManually && gBrowser._numPinnedTabs > 0; > self.remove(item, {dontArrange: dontArrange, dontClose: dontClose}); > > if (dontArrange) > self._freezeItemSize(count); > > if (self._children.length > 0 && self._activeTab) > UI.setActive(self); > }); https://mxr.mozilla.org/mozilla-central/source/browser/base/content/tabview/groupitems.js#1013 We should re-add the same close handler when a TabItem could not be closed.
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #544364 -
Flags: feedback?(raymond)
Comment 2•13 years ago
|
||
Comment on attachment 544364 [details] [diff] [review] patch v1 Looks good
Attachment #544364 -
Flags: feedback?(raymond) → feedback+
Assignee | ||
Updated•13 years ago
|
Attachment #544364 -
Flags: review?(ehsan)
Assignee | ||
Comment 3•13 years ago
|
||
Comment on attachment 544364 [details] [diff] [review] patch v1 Passed try: http://tbpl.mozilla.org/?tree=Try&pusher=tim.taubert@gmx.de&rev=3efc59543378
Updated•13 years ago
|
Attachment #544364 -
Flags: review?(ehsan) → review+
Assignee | ||
Comment 4•13 years ago
|
||
http://hg.mozilla.org/integration/fx-team/rev/8c1f92fdd9fb
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Comment 5•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/8c1f92fdd9fb
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 8
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
•