Bug 1378754 - Don't clear marked fields in nsFormFillController upon pagehide. r=smaug draft
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Thu, 20 Jul 2017 15:52:46 -0700
changeset 612671 4adf59e0ee1fb1c63ac7d09764aefcbbde089af4
parent 612670 910b2601e0ca3ea990cb076d6059175a9e3b9fef
child 638466 858eae6723274773dec74839775dd820ff49d0b6
push id69561
push usermozilla@noorenberghe.ca
push dateThu, 20 Jul 2017 22:57:02 +0000
reviewerssmaug
bugs1378754
milestone56.0a1
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
toolkit/components/satchel/nsFormFillController.cpp
--- 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;
   }