Bug 1289913 - Show autocomplete UI on password fields.; r=MattN

MozReview-Commit-ID: LGKM6igKbQB
This commit is contained in:
Sean Lee
2016-11-03 18:07:39 +08:00
parent ffa886adf2
commit 3cc8a23f07
12 changed files with 834 additions and 19 deletions

View File

@@ -216,7 +216,7 @@ void
nsFormFillController::MaybeRemoveMutationObserver(nsINode* aNode)
{
// Nodes being tracked in mPwmgrInputs will have their observers removed when
// they stop being tracked.
// they stop being tracked.
if (!mPwmgrInputs.Get(aNode)) {
aNode->RemoveMutationObserver(this);
}
@@ -900,7 +900,7 @@ nsFormFillController::MaybeStartControllingInput(nsIDOMHTMLInputElement* aInput)
return;
nsCOMPtr<nsIFormControl> formControl = do_QueryInterface(aInput);
if (!formControl || !formControl->IsSingleLineTextControl(true))
if (!formControl || !formControl->IsSingleLineTextControl(false))
return;
bool isReadOnly = false;