Bug 1183037: Ensure that autocomplete popups can be displayed again after being dismissed the first time. r=mconley
authorStephen A Pohl <spohl.mozilla.bugs@gmail.com>
Mon, 24 Oct 2016 11:46:16 -0400
changeset 428751 b443899d03b49b3e0af52e9274b287c990798315
parent 428750 1d1dd53f792ce5f856ed14fb22948d8c58b639c7
child 428752 d8d0c596c7c9b49426e33bd2c8a3ea2a5cc77643
child 429063 b212d4a114fcab72161b2616957b4dc15308c13f
push id33413
push usermozilla@kaply.com
push dateMon, 24 Oct 2016 15:54:36 +0000
reviewersmconley
bugs1183037
milestone52.0a1
Bug 1183037: Ensure that autocomplete popups can be displayed again after being dismissed the first time. r=mconley
toolkit/components/satchel/nsFormFillController.cpp
--- a/toolkit/components/satchel/nsFormFillController.cpp
+++ b/toolkit/components/satchel/nsFormFillController.cpp
@@ -1058,18 +1058,19 @@ nsFormFillController::MouseDown(nsIDOMEv
 
   int16_t button;
   mouseEvent->GetButton(&button);
   if (button != 0)
     return NS_OK;
 
   bool isOpen = false;
   GetPopupOpen(&isOpen);
-  if (isOpen)
-    return NS_OK;
+  if (isOpen) {
+    return SetPopupOpen(false);
+  }
 
   nsCOMPtr<nsIAutoCompleteInput> input;
   mController->GetInput(getter_AddRefs(input));
   if (!input)
     return NS_OK;
 
   nsAutoString value;
   input->GetTextValue(value);