From 756ad8cb133a7d6412cdc9afe2ba166ab53bb65a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kan-Ru=20Chen=20=28=C3=A9=E2=84=A2=C2=B3=C3=A4=C2=BE=C6=92?= =?UTF-8?q?=C3=A5=C2=A6=E2=80=9A=29?= Date: Thu, 7 Mar 2013 08:35:38 -0500 Subject: [PATCH] Bug 838547 - We are only interested to the pagehide event from the root document. r=smaug --- b2g/chrome/content/forms.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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;