зеркало из https://github.com/mozilla/gecko-dev.git
Bug 704521 - Fix form history autocomplete broken for XUL elements. r=zpao
This commit is contained in:
Родитель
812e142da7
Коммит
d98e7883a1
|
@ -575,7 +575,9 @@ nsFormFillController::StartSearch(const nsAString &aSearchString, const nsAStrin
|
|||
} else {
|
||||
nsCOMPtr<nsIAutoCompleteResult> formHistoryResult;
|
||||
|
||||
if (mFocusedInput && nsContentUtils::IsAutocompleteEnabled(mFocusedInput)) {
|
||||
// It appears that mFocusedInput is always null when we are focusing a XUL
|
||||
// element. Scary :)
|
||||
if (!mFocusedInput || nsContentUtils::IsAutocompleteEnabled(mFocusedInput)) {
|
||||
nsCOMPtr <nsIFormAutoComplete> formAutoComplete =
|
||||
do_GetService("@mozilla.org/satchel/form-autocomplete;1", &rv);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
|
Загрузка…
Ссылка в новой задаче