This commit is contained in:
Ryan VanderMeulen 2013-05-09 00:17:02 -04:00
Родитель 579e450774 e546a72d15
Коммит 9f1e57c01e
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -185,6 +185,7 @@ let FormAssistant = {
addEventListener("resize", this, true, false);
addEventListener("submit", this, true, false);
addEventListener("pagehide", this, true, false);
addEventListener("beforeunload", this, true, false);
addEventListener("input", this, true, false);
addEventListener("keydown", this, true, false);
addMessageListener("Forms:Select:Choice", this);
@ -292,7 +293,9 @@ let FormAssistant = {
break;
case "pagehide":
// We are only interested to the pagehide event from the root document.
case "beforeunload":
// We are only interested to the pagehide and beforeunload events from
// the root document.
if (target && target != content.document) {
break;
}