diff --git a/toolkit/components/satchel/src/nsFormFillController.cpp b/toolkit/components/satchel/src/nsFormFillController.cpp index d97a93c5abe4..71781ad3d803 100644 --- a/toolkit/components/satchel/src/nsFormFillController.cpp +++ b/toolkit/components/satchel/src/nsFormFillController.cpp @@ -791,6 +791,12 @@ nsFormFillController::MouseDown(nsIDOMEvent* aMouseEvent) if (!mouseEvent) return NS_ERROR_FAILURE; + nsCOMPtr target; + aMouseEvent->GetTarget(getter_AddRefs(target)); + nsCOMPtr targetInput = do_QueryInterface(target); + if (!targetInput) + return NS_OK; + PRUint16 button; mouseEvent->GetButton(&button); if (button != 0)