зеркало из https://github.com/mozilla/pjs.git
Backing out bug 391385 for Ts/Txul regression
This commit is contained in:
Родитель
a31c1a76ab
Коммит
1ba5e8ad71
|
@ -1,18 +1,13 @@
|
|||
/* ::::: search bar ::::: */
|
||||
searchbar {
|
||||
-moz-binding: url("chrome://browser/content/search/search.xml#searchbar");
|
||||
}
|
||||
|
||||
#SearchAutoComplete {
|
||||
-moz-binding: url("chrome://browser/content/search/search.xml#searchbar-result-popup");
|
||||
}
|
||||
|
||||
/* ::::: location bar ::::: */
|
||||
#urlbar {
|
||||
-moz-binding: url(chrome://browser/content/urlbarBindings.xml#urlbar);
|
||||
}
|
||||
|
||||
#UrlbarAutoComplete {
|
||||
#PopupAutoComplete {
|
||||
-moz-binding: url("chrome://browser/content/urlbarBindings.xml#urlbar-result-popup");
|
||||
}
|
||||
|
||||
|
|
|
@ -98,9 +98,7 @@
|
|||
onclick="checkForMiddleClick(this, event);"/>
|
||||
<tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
|
||||
|
||||
<panel type="autocomplete" chromedir="&locale.dir;" id="UrlbarAutoComplete" noautofocus="true"/>
|
||||
<panel type="autocomplete" chromedir="&locale.dir;" id="SearchAutoComplete" noautofocus="true"/>
|
||||
<panel type="autocomplete" chromedir="&locale.dir;" id="ContentAutoComplete" noautofocus="true"/>
|
||||
<panel type="autocomplete" chromedir="&locale.dir;" id="PopupAutoComplete" noautofocus="true"/>
|
||||
|
||||
<panel id="editBookmarkPanel" orient="vertical">
|
||||
<vbox id="editBookmarkPanelContent" flex="1"/>
|
||||
|
@ -222,7 +220,7 @@
|
|||
chromedir="&locale.dir;"
|
||||
type="autocomplete"
|
||||
autocompletesearch="history"
|
||||
autocompletepopup="UrlbarAutoComplete"
|
||||
autocompletepopup="PopupAutoComplete"
|
||||
completeselectedindex="true"
|
||||
tabscrolling="true"
|
||||
showcommentcolumn="true"
|
||||
|
@ -302,8 +300,7 @@
|
|||
<toolbaritem id="search-container" title="&searchItem.title;"
|
||||
align="center" class="chromeclass-toolbar-additional"
|
||||
flex="100" persist="width">
|
||||
<searchbar id="searchbar" flex="1" chromedir="&locale.dir;"
|
||||
autocompletepopup="SearchAutoComplete"/>
|
||||
<searchbar id="searchbar" flex="1" chromedir="&locale.dir;"/>
|
||||
</toolbaritem>
|
||||
|
||||
<toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
||||
|
@ -433,7 +430,7 @@
|
|||
flex="1" contenttooltip="aHTMLTooltip"
|
||||
contentcontextmenu="contentAreaContextMenu"
|
||||
onnewtab="BrowserOpenTab();"
|
||||
autocompletepopup="ContentAutoComplete"
|
||||
autocompletepopup="PopupAutoComplete"
|
||||
ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);"
|
||||
onclick="return contentAreaClick(event, false);"/>
|
||||
</vbox>
|
||||
|
|
|
@ -504,8 +504,7 @@
|
|||
|
||||
</binding>
|
||||
|
||||
<binding id="urlbar-result-popup"
|
||||
extends="chrome://global/content/bindings/autocomplete.xml#autocomplete-result-popup">
|
||||
<binding id="urlbar-result-popup" extends="chrome://global/content/bindings/autocomplete.xml#autocomplete-result-popup">
|
||||
<implementation>
|
||||
<method name="onPopupClick">
|
||||
<parameter name="aEvent"/>
|
||||
|
|
|
@ -90,6 +90,7 @@
|
|||
anonid="searchbar-textbox"
|
||||
type="autocomplete"
|
||||
flex="1"
|
||||
autocompletepopup="PopupAutoComplete"
|
||||
autocompletesearch="search-autocomplete"
|
||||
autocompletesearchparam="searchbar-history"
|
||||
timeout="250"
|
||||
|
@ -97,7 +98,7 @@
|
|||
completeselectedindex="true"
|
||||
showcommentcolumn="true"
|
||||
tabscrolling="true"
|
||||
xbl:inherits="disabled,disableautocomplete,autocompletepopup,searchengine,src">
|
||||
xbl:inherits="disabled,disableautocomplete,searchengine,src">
|
||||
</xul:textbox>
|
||||
</xul:hbox>
|
||||
|
||||
|
@ -838,35 +839,4 @@
|
|||
<children/>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
<binding id="searchbar-result-popup"
|
||||
extends="chrome://global/content/bindings/autocomplete.xml#autocomplete-result-popup">
|
||||
<implementation>
|
||||
<method name="onPopupClick">
|
||||
<parameter name="aEvent"/>
|
||||
<body><![CDATA[
|
||||
var controller = this.view.QueryInterface(Components.interfaces.nsIAutoCompleteController);
|
||||
|
||||
// default action on unmodified left-click
|
||||
if (aEvent.button == 0 && !aEvent.shiftKey && !aEvent.ctrlKey &&
|
||||
!aEvent.altKey && !aEvent.metaKey) {
|
||||
controller.handleEnter();
|
||||
}
|
||||
// completely ignore right-clicks
|
||||
else if (aEvent.button != 2) {
|
||||
// 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);
|
||||
}
|
||||
]]></body>
|
||||
</method>
|
||||
</implementation>
|
||||
</binding>
|
||||
</bindings>
|
||||
|
|
|
@ -914,15 +914,15 @@ toolbar[iconsize="small"] #paste-button:not([disabled="true"]):hover:active {
|
|||
direction: ltr;
|
||||
}
|
||||
|
||||
#UrlbarAutoComplete {
|
||||
#PopupAutoComplete {
|
||||
direction: ltr !important;
|
||||
}
|
||||
|
||||
#UrlbarAutoComplete[chromedir="rtl"] > tree > treerows {
|
||||
#PopupAutoComplete[chromedir="rtl"] > tree > treerows {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
#UrlbarAutoComplete .autocomplete-treebody {
|
||||
#PopupAutoComplete .autocomplete-treebody {
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче