Back out Bug 708640 forgot to add r+
authorPhilip Chee <philip.chee@gmail.com>
Sat, 10 Dec 2011 18:38:05 +0800
changeset 9964 64444f3864749db306d4d97c989db2444e7d3b80
parent 9963 e1f1b4c63c8039f7ebed4764587a1917670634f8
child 9965 3d2c908c293836474a79e285c36cb9315aae68b9
push id336
push userbugzilla@standard8.plus.com
push dateTue, 31 Jan 2012 22:15:45 +0000
treeherdercomm-beta@54945f5d278d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs708640
Back out Bug 708640 forgot to add r+
suite/browser/navigator.js
suite/browser/navigator.xul
--- a/suite/browser/navigator.js
+++ b/suite/browser/navigator.js
@@ -1603,18 +1603,17 @@ function handleURLBarCommand(aUserAction
     }
 
     var browser = getBrowser();
     var postData = {};
     url = getShortcutOrURI(url, postData);
     // Accept both Control and Meta (=Command) as New-Window-Modifiers
     if (aTriggeringEvent &&
         (('ctrlKey' in aTriggeringEvent && aTriggeringEvent.ctrlKey) ||
-         ('metaKey' in aTriggeringEvent && aTriggeringEvent.metaKey) ||
-         ('button'  in aTriggeringEvent && aTriggeringEvent.button == 1))) {
+         ('metaKey' in aTriggeringEvent && aTriggeringEvent.metaKey))) {
       // Check if user requests Tabs instead of windows
       if (GetBoolPref("browser.tabs.opentabfor.urlbar", false)) {
         // Open link in new tab
         var t = browser.addTab(url, {allowThirdPartyFixup: true, postData: postData.value});
 
         // Focus new tab unless shift is pressed
         if (!shiftPressed) {
           browser.userTypedValue = null;
--- a/suite/browser/navigator.xul
+++ b/suite/browser/navigator.xul
@@ -342,17 +342,16 @@
                    class="nav-bar-class"
                    title="&goButton.label;">
         <button id="go-button"
                 class="button-toolbar chromeclass-location"
                 label="&goButton.label;"
                 tooltiptext="&goButton.tooltip;"
                 default="true"
                 oncommand="handleURLBarCommand('none', event);"
-                onclick="checkForMiddleClick(this, event);"
                 ondragover="nsDragAndDrop.dragOver(event, goButtonObserver);"
                 ondragdrop="nsDragAndDrop.drop(event, goButtonObserver);"
                 ondragexit="nsDragAndDrop.dragExit(event, goButtonObserver);"/>
       </toolbaritem>
 
       <toolbaritem id="search-button-container"
                    class="nav-bar-class"
                    title="&searchButton.label;">