Bug 1300547 - Init AutoComplete after Bug 1294502. r=Ratty a=Ratty
This commit is contained in:
Родитель
a8d43526b8
Коммит
d63a824106
|
@ -33,6 +33,15 @@ tabbrowser {
|
|||
-moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton");
|
||||
}
|
||||
|
||||
/* ::::: search suggestions autocomplete ::::: */
|
||||
#PopupAutoComplete > richlistbox > richlistitem > .ac-type-icon,
|
||||
#PopupAutoComplete > richlistbox > richlistitem > .ac-site-icon,
|
||||
#PopupAutoComplete > richlistbox > richlistitem > .ac-tags,
|
||||
#PopupAutoComplete > richlistbox > richlistitem > .ac-separator,
|
||||
#PopupAutoComplete > richlistbox > richlistitem > .ac-url {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* ::::: urlbar autocomplete ::::: */
|
||||
|
||||
#urlbar {
|
||||
|
|
|
@ -108,7 +108,10 @@
|
|||
onclick="checkForMiddleClick(this, event);"/>
|
||||
|
||||
<!-- for search and content formfill/pw manager -->
|
||||
<panel id="PopupAutoComplete" type="autocomplete" noautofocus="true"/>
|
||||
<panel id="PopupAutoComplete"
|
||||
type="autocomplete-richlistbox"
|
||||
noautofocus="true"
|
||||
hidden="true"/>
|
||||
|
||||
<!-- for invalid form error message -->
|
||||
<panel id="invalid-form-popup" noautofocus="true" hidden="true" level="parent">
|
||||
|
|
|
@ -26,6 +26,9 @@ XPCOMUtils.defineLazyModuleGetter(this, "PlacesUtils",
|
|||
XPCOMUtils.defineLazyModuleGetter(this, "PlacesBackups",
|
||||
"resource://gre/modules/PlacesBackups.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "AutoCompletePopup",
|
||||
"resource://gre/modules/AutoCompletePopup.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "BookmarkHTMLUtils",
|
||||
"resource://gre/modules/BookmarkHTMLUtils.jsm");
|
||||
|
||||
|
@ -178,6 +181,8 @@ SuiteGlue.prototype = {
|
|||
this._onQuitRequest(subject, data);
|
||||
break;
|
||||
case "quit-application-granted":
|
||||
AutoCompletePopup.uninit();
|
||||
|
||||
if (this._saveSession) {
|
||||
this._setPrefToSaveSession();
|
||||
}
|
||||
|
@ -466,6 +471,8 @@ SuiteGlue.prototype = {
|
|||
// Browser startup complete. All initial windows have opened.
|
||||
_onBrowserStartup: function(aWindow)
|
||||
{
|
||||
AutoCompletePopup.init();
|
||||
|
||||
if (Services.prefs.getBoolPref("plugins.update.notifyUser"))
|
||||
this._showPluginUpdatePage(aWindow);
|
||||
|
||||
|
|
|
@ -485,6 +485,23 @@ toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon {
|
|||
|
||||
/* ::::: autocomplete ::::: */
|
||||
|
||||
#PopupAutoComplete > richlistbox > richlistitem {
|
||||
height: 20px;
|
||||
min-height: 20px;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
padding: 0px 1px 0px 1px;
|
||||
}
|
||||
|
||||
#PopupAutoComplete > richlistbox > richlistitem > .ac-title {
|
||||
font: icon;
|
||||
margin-inline-start: 6px;
|
||||
}
|
||||
|
||||
#PopupAutoComplete > richlistbox {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.autocomplete-textbox-container {
|
||||
-moz-box-align: center;
|
||||
}
|
||||
|
|
|
@ -514,6 +514,23 @@ toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon {
|
|||
|
||||
/* ::::: autocomplete ::::: */
|
||||
|
||||
#PopupAutoComplete > richlistbox > richlistitem {
|
||||
height: 20px;
|
||||
min-height: 20px;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
padding: 0px 1px 0px 1px;
|
||||
}
|
||||
|
||||
#PopupAutoComplete > richlistbox > richlistitem > .ac-title {
|
||||
font: icon;
|
||||
margin-inline-start: 6px;
|
||||
}
|
||||
|
||||
#PopupAutoComplete > richlistbox {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.autocomplete-history-dropmarker {
|
||||
border-right-width: 1px;
|
||||
border-bottom-width: 1px;
|
||||
|
|
|
@ -693,6 +693,23 @@ toolbar[mode="icons"] #search-button > .button-box > .button-text {
|
|||
|
||||
/* ::::: autocomplete ::::: */
|
||||
|
||||
#PopupAutoComplete > richlistbox > richlistitem {
|
||||
height: 20px;
|
||||
min-height: 20px;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
padding: 0px 1px 0px 1px;
|
||||
}
|
||||
|
||||
#PopupAutoComplete > richlistbox > richlistitem > .ac-title {
|
||||
font: icon;
|
||||
margin-inline-start: 6px;
|
||||
}
|
||||
|
||||
#PopupAutoComplete > richlistbox {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.autocomplete-treebody::-moz-tree-cell-text(value) {
|
||||
padding-inline-start: 15px;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче