diff --git a/b2g/chrome/content/forms.js b/b2g/chrome/content/forms.js index 565e68ecf6e3..c4d130936f57 100644 --- a/b2g/chrome/content/forms.js +++ b/b2g/chrome/content/forms.js @@ -264,9 +264,14 @@ let FormAssistant = { this.showKeyboard(target); break; + case "pagehide": + // We are only interested to the pagehide event from the root document. + if (target && target != content.document) { + break; + } + // fall through case "blur": case "submit": - case "pagehide": if (this.focusedElement) this.hideKeyboard(); break;