зеркало из https://github.com/mozilla/gecko-dev.git
Bug 838547 - We are only interested to the pagehide event from the root document. r=smaug
This commit is contained in:
Родитель
bebe698580
Коммит
756ad8cb13
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче