From 1e4986d5bd484e16e2f77d6805a8991ae675fe5d Mon Sep 17 00:00:00 2001 From: "asqueella%gmail.com" Date: Sun, 2 Sep 2007 17:58:17 +0000 Subject: [PATCH] try to back out 361735 to see if it fixes the orange on bm-xserve08 git-svn-id: svn://10.0.0.236/trunk@233747 18797224-902f-48f8-a5cc-f745e15eee43 --- .../browser/base/content/urlbarBindings.xml | 31 ++++--------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/mozilla/browser/base/content/urlbarBindings.xml b/mozilla/browser/base/content/urlbarBindings.xml index c576c23ed57..632ded98bd9 100644 --- a/mozilla/browser/base/content/urlbarBindings.xml +++ b/mozilla/browser/base/content/urlbarBindings.xml @@ -518,32 +518,13 @@ } // completely ignore right-clicks else if (aEvent.button != 2) { - if (gURLBar && this.mInput == gURLBar) { - // handle address bar click - var url = controller.getValueAt(this.tree.view.selection.currentIndex); + var url = controller.getValueAt(this.tree.view.selection.currentIndex); - // close the autocomplete popup and revert the entered address - this.closePopup(); - controller.handleEscape(); - // respect the usual clicking subtleties - openUILink(url, aEvent); - } - else if (this.mInput._getParentSearchbar) { - // handle search bar click - var search = controller.getValueAt(this.tree.view.selection.currentIndex); - var textbox = this.mInput; - - // close the autocomplete popup and copy the selected value to the search box - this.closePopup(); - textbox.value = search; - // open the search results according to the clicking subtlety - var where = whereToOpenLink(aEvent, false, true); - textbox._getParentSearchbar().doSearch(search, where); - } - else { - // everybody else (i.e. browser content) gets unmodified behavior - controller.handleEnter(); - } + // close the autocomplete popup and revert the entered address + this.closePopup(); + controller.handleEscape(); + // respect the usual clicking subtleties + openUILink(url, aEvent); } ]]>