try to back out 361735 to see if it fixes the orange on bm-xserve08

This commit is contained in:
asqueella@gmail.com 2007-09-02 10:58:17 -07:00
Родитель e867733abf
Коммит 938f8174e9
1 изменённых файлов: 6 добавлений и 25 удалений

Просмотреть файл

@ -518,8 +518,6 @@
}
// 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);
// close the autocomplete popup and revert the entered address
@ -528,23 +526,6 @@
// 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();
}
}
]]></body>
</method>
</implementation>