backout dde12ccefb19 due to bustage.
authorJim Mathies <jmathies@mozilla.com>
Wed, 05 Feb 2014 06:18:19 -0600
changeset 166838 25572e0fbf0b28108833ba755d705a26ad7f7730
parent 166837 dde12ccefb1955d62f1898195bad0caa317c1079
child 166840 7260560686bb5101b0fbf8acbd5a1a905a3b0b02
push id4852
push userjmathies@mozilla.com
push dateWed, 05 Feb 2014 12:19:17 +0000
treeherderfx-team@7260560686bb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone30.0a1
backs outdde12ccefb1955d62f1898195bad0caa317c1079
backout dde12ccefb19 due to bustage.
browser/metro/base/content/browser-ui.js
--- a/browser/metro/base/content/browser-ui.js
+++ b/browser/metro/base/content/browser-ui.js
@@ -101,18 +101,16 @@ var BrowserUI = {
     messageManager.addMessageListener("Content:StateChange", this);
 
     // listening escape to dismiss dialog on VK_ESCAPE
     window.addEventListener("keypress", this, true);
 
     window.addEventListener("MozPrecisePointer", this, true);
     window.addEventListener("MozImprecisePointer", this, true);
 
-    window.addEventListener("AppCommand", this, true);
-
     Services.prefs.addObserver("browser.cache.disk_cache_ssl", this, false);
 
     // Init core UI modules
     ContextUI.init();
     PanelUI.init();
     FlyoutPanelsUI.init();
     PageThumbs.init();
     NewTabUtils.init();
@@ -778,19 +776,16 @@ var BrowserUI = {
           this.handleEscape(aEvent);
         break;
       case "MozPrecisePointer":
         this._onPreciseInput();
         break;
       case "MozImprecisePointer":
         this._onImpreciseInput();
         break;
-      case "AppCommand":
-        this.handleAppCommandEvent(aEvent);
-        break;
     }
   },
 
   // Checks if various different parts of the UI is visible and closes
   // them one at a time.
   handleEscape: function (aEvent) {
     aEvent.stopPropagation();
     aEvent.preventDefault();
@@ -1140,58 +1135,16 @@ var BrowserUI = {
         this.openFile();
         break;
       case "cmd_savePage":
         this.savePage();
         break;
     }
   },
 
-  handleAppCommandEvent: function (aEvent) {
-    switch (aEvent.command) {
-    case "Back":
-      this.doCommand("cmd_back");
-      break;
-    case "Forward":
-      this.doCommand("cmd_forward");
-      break;
-    case "Reload":
-      this.doCommand("cmd_reload");
-      break;
-    case "Stop":
-      this.doCommand("cmd_stop");
-      break;
-    case "Home":
-      this.doCommand("cmd_home");
-      break;
-    case "New":
-      this.doCommand("cmd_newTab");
-      break;
-    case "Close":
-      this.doCommand("cmd_closeTab");
-      break;
-    case "Find":
-      FindHelperUI.show();
-      break;
-    case "Open":
-      this.doCommand("cmd_openFile");
-      break;
-    case "Save":
-      this.doCommand("cmd_savePage");
-      break;
-    case "Search":
-      this.doCommand("cmd_openLocation");
-      break;
-    default:
-      return;
-    }
-    aEvent.stopPropagation();
-    aEvent.preventDefault();
-  },
-
   confirmSanitizeDialog: function () {
     let bundle = Services.strings.createBundle("chrome://browser/locale/browser.properties");
     let title = bundle.GetStringFromName("clearPrivateData.title2");
     let message = bundle.GetStringFromName("clearPrivateData.message3");
     let clearbutton = bundle.GetStringFromName("clearPrivateData.clearButton");
 
     let prefsClearButton = document.getElementById("prefs-clear-data");
     prefsClearButton.disabled = true;