Bug 660844 - Fix errors in browser_tabs.js caused by bug 686380 [r=mfinkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Tue, 20 Sep 2011 13:25:22 -0700
changeset 77216 355ffd653a9df1cb8ed3e78a09ebbe2e4834c199
parent 77215 1e41259daf673616a0b624cd142f0ba2809f883e
child 77217 e0ea0a7ecbee994529bd5a4e4cd231791cb3fffe
push id21187
push usermak77@bonardo.net
push dateWed, 21 Sep 2011 08:36:41 +0000
treeherdermozilla-central@3178f1c42505 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs660844, 686380
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 660844 - Fix errors in browser_tabs.js caused by bug 686380 [r=mfinkle]
mobile/chrome/content/tabs.xml
--- a/mobile/chrome/content/tabs.xml
+++ b/mobile/chrome/content/tabs.xml
@@ -80,20 +80,20 @@
             closeFn.call(this);
           ]]>
         </body>
       </method>
 
       <method name="_onUndo">
         <body>
           <![CDATA[
-            let closeFn = new Function("event", this._container.getAttribute("onreloadtab"));
+            let container = this._container;
+            let closeFn = new Function("event", container.getAttribute("onreloadtab"));
             closeFn.call(this);
-
-            this._container.removeTab(this);
+            container.removeClosedTab(this);
           ]]>
         </body>
       </method>
 
       <method name="updateTitle">
         <parameter name="title"/>
         <body>
           <![CDATA[