Bug 1378754 - Don't clear marked fields in nsFormFillController upon pagehide. r=smaug
The autofill and password manager markings will be removed by NodeWillBeDestroyed or RemoveWindowListeners instead.
MozReview-Commit-ID: Imd8KHwBzRP
--- a/toolkit/components/satchel/nsFormFillController.cpp
+++ b/toolkit/components/satchel/nsFormFillController.cpp
@@ -975,18 +975,16 @@ nsFormFillController::HandleEvent(nsIDOM
return NS_OK;
}
if (mFocusedInput) {
if (doc == mFocusedInputNode->OwnerDoc()) {
StopControllingInput();
}
}
-
- RemoveForDocument(doc);
}
break;
default:
// Handling the default case to shut up stupid -Wswitch warnings.
// One day compilers will be smarter...
break;
}