Bug 586198 - Incorrect placement of tab after Undo Close Tab in Tab Candy [r=dolske a=blocking2.0:beta4]
authorEdward Lee <edilee@mozilla.com>
Mon, 16 Aug 2010 16:56:28 -0700
changeset 50696 f61b0b275541b781d87b11ab4320d203b81c1c79
parent 50695 5cce3845d654b1e25bb582700449e594d0457d68
child 50697 62d9ac4292784438509be605608eca2924cff2ed
push idunknown
push userunknown
push dateunknown
reviewersdolske, blocking2
bugs586198
milestone2.0b4pre
Bug 586198 - Incorrect placement of tab after Undo Close Tab in Tab Candy [r=dolske a=blocking2.0:beta4] Explicitly wipe out tab storage data on close so that undo close tab acts like a brand new tab.
browser/base/content/tabview/tabitems.js
--- a/browser/base/content/tabview/tabitems.js
+++ b/browser/base/content/tabview/tabitems.js
@@ -851,16 +851,17 @@ window.TabItems = {
 
       this.unregister(tab.tabItem);
       tab.tabItem._sendToSubscribers("close");
       iQ(tab.tabItem.container).remove();
       tab.tabItem.removeTrenches();
       Items.unsquish(null, tab.tabItem);
 
       tab.tabItem = null;
+      Storage.saveTab(tab, null);
 
       let index = this._tabsWaitingForUpdate.indexOf(tab);
       if (index != -1)
         this._tabsWaitingForUpdate.splice(index, 1);
     } catch(e) {
       Utils.log(e);
     }
   },