diff --git a/mozilla/layout/forms/nsImageControlFrame.cpp b/mozilla/layout/forms/nsImageControlFrame.cpp index 93822596e3d..46ed317ee4a 100644 --- a/mozilla/layout/forms/nsImageControlFrame.cpp +++ b/mozilla/layout/forms/nsImageControlFrame.cpp @@ -442,7 +442,7 @@ nsImageControlFrame::MouseClicked(nsIPresContext* aPresContext) nsIContent *formContent = nsnull; mFormFrame->GetContent(&formContent); - nsEventStatus status; + nsEventStatus status = nsEventStatus_eIgnore; nsEvent event; event.eventStructType = NS_EVENT; event.message = NS_FORM_SUBMIT; diff --git a/mozilla/layout/html/forms/src/nsImageControlFrame.cpp b/mozilla/layout/html/forms/src/nsImageControlFrame.cpp index 93822596e3d..46ed317ee4a 100644 --- a/mozilla/layout/html/forms/src/nsImageControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsImageControlFrame.cpp @@ -442,7 +442,7 @@ nsImageControlFrame::MouseClicked(nsIPresContext* aPresContext) nsIContent *formContent = nsnull; mFormFrame->GetContent(&formContent); - nsEventStatus status; + nsEventStatus status = nsEventStatus_eIgnore; nsEvent event; event.eventStructType = NS_EVENT; event.message = NS_FORM_SUBMIT;