Bug 1023406 - Disable undo close tab toast for Fx32. r=bnicholson a=lsblakk
authorMargaret Leibovic <margaret.leibovic@gmail.com>
Tue, 10 Jun 2014 10:55:47 -0700
changeset 208097 f6d22cf586e140f9d549723fec8aa62edb2f9602
parent 208096 5ab56f2e6febcca7eb2936055fb85b5d588467fc
child 208098 68bec0700dacd05531014214dd6e456bfb257a52
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbnicholson, lsblakk
bugs1023406
milestone32.0a2
Bug 1023406 - Disable undo close tab toast for Fx32. r=bnicholson a=lsblakk
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -975,16 +975,18 @@ var BrowserApp = {
 
     let evt = document.createEvent("UIEvents");
     evt.initUIEvent("TabClose", true, false, window, tabIndex);
     aTab.browser.dispatchEvent(evt);
 
     aTab.destroy();
     this._tabs.splice(tabIndex, 1);
 
+/* Disabled for Firefox 32. See bug 1023406.
+
     if (aShowUndoToast) {
       // Get a title for the undo close toast. Fall back to the URL if there is no title.
       let ss = Cc["@mozilla.org/browser/sessionstore;1"].getService(Ci.nsISessionStore);
       let closedTabData = ss.getClosedTabs(window)[0];
 
       let message;
       let title = closedTabData.entries[closedTabData.index - 1].title;
 
@@ -1000,16 +1002,17 @@ var BrowserApp = {
           label: Strings.browser.GetStringFromName("undoCloseToast.action2"),
           callback: function() {
             UITelemetry.addEvent("undo.1", "toast", null, "closetab");
             ss.undoCloseTab(window, 0);
           }
         }
       });
     }
+*/
   },
 
   // Use this method to select a tab from JS. This method sends a message
   // to Java to select the tab in the Java UI (we'll get a Tab:Selected message
   // back from Java when that happens).
   selectTab: function selectTab(aTab) {
     if (!aTab) {
       Cu.reportError("Error trying to select tab (tab doesn't exist)");