diff --git a/mozilla/content/html/content/src/nsHTMLInputElement.cpp b/mozilla/content/html/content/src/nsHTMLInputElement.cpp
index a186a3aaf67..21be8eea915 100644
--- a/mozilla/content/html/content/src/nsHTMLInputElement.cpp
+++ b/mozilla/content/html/content/src/nsHTMLInputElement.cpp
@@ -913,7 +913,7 @@ nsHTMLInputElement::HandleDOMEvent(nsIPresContext* aPresContext,
aFlags, aEventStatus);
// now check to see if the event was "cancelled"
- if (nsEventStatus_eConsumeNoDefault != *aEventStatus && checkWasSet &&
+ if (nsEventStatus_eConsumeNoDefault == *aEventStatus && checkWasSet &&
(type == NS_FORM_INPUT_CHECKBOX || type == NS_FORM_INPUT_RADIO)) {
// if it was cancelled and a radio button, then set the old selceted btn to TRUE
//. if it is a checkbox then set it to it's original value
diff --git a/mozilla/layout/html/content/src/nsHTMLInputElement.cpp b/mozilla/layout/html/content/src/nsHTMLInputElement.cpp
index a186a3aaf67..21be8eea915 100644
--- a/mozilla/layout/html/content/src/nsHTMLInputElement.cpp
+++ b/mozilla/layout/html/content/src/nsHTMLInputElement.cpp
@@ -913,7 +913,7 @@ nsHTMLInputElement::HandleDOMEvent(nsIPresContext* aPresContext,
aFlags, aEventStatus);
// now check to see if the event was "cancelled"
- if (nsEventStatus_eConsumeNoDefault != *aEventStatus && checkWasSet &&
+ if (nsEventStatus_eConsumeNoDefault == *aEventStatus && checkWasSet &&
(type == NS_FORM_INPUT_CHECKBOX || type == NS_FORM_INPUT_RADIO)) {
// if it was cancelled and a radio button, then set the old selceted btn to TRUE
//. if it is a checkbox then set it to it's original value