зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1631617 - Limit login and Form Autofill autocomplete results to 10 rows. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D72218
This commit is contained in:
Родитель
ecd63e101e
Коммит
8c5b54f110
|
@ -240,7 +240,7 @@ class AutoCompleteParent extends JSWindowActorParent {
|
||||||
(resultStyles.has("autofill-profile") || resultStyles.has("loginsFooter"))
|
(resultStyles.has("autofill-profile") || resultStyles.has("loginsFooter"))
|
||||||
) {
|
) {
|
||||||
this.openedPopup._normalMaxRows = this.openedPopup.maxRows;
|
this.openedPopup._normalMaxRows = this.openedPopup.maxRows;
|
||||||
this.openedPopup.mInput.maxRows = 100;
|
this.openedPopup.mInput.maxRows = 10;
|
||||||
}
|
}
|
||||||
this.openedPopup.addEventListener("popuphidden", this);
|
this.openedPopup.addEventListener("popuphidden", this);
|
||||||
this.openedPopup.addEventListener("popupshowing", this);
|
this.openedPopup.addEventListener("popupshowing", this);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче