mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Backed out changeset 11b4c8d470ab (bug 1122463) for b2g test failures
This commit is contained in:
parent
687807441c
commit
32b36a8170
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user