Backed out changeset 11b4c8d470ab (bug 1122463) for b2g test failures

This commit is contained in:
Carsten "Tomcat" Book 2015-02-12 14:09:14 +01:00
parent 687807441c
commit 32b36a8170

View File

@ -193,9 +193,7 @@ let FormAssistant = {
addEventListener("focus", this, true, false);
addEventListener("blur", this, true, false);
addEventListener("resize", this, true, false);
// We should not blur the fucus if the submit event is cancelled,
// therefore we are binding our event listener in the bubbling phase here.
addEventListener("submit", this, false, false);
addEventListener("submit", this, true, false);
addEventListener("pagehide", this, true, false);
addEventListener("beforeunload", this, true, false);
addEventListener("input", this, true, false);
@ -401,7 +399,7 @@ let FormAssistant = {
}
// fall through
case "submit":
if (this.focusedElement && !evt.defaultPrevented) {
if (this.focusedElement) {
this.focusedElement.blur();
}
break;