зеркало из https://github.com/mozilla/gecko-dev.git
Bug 738848 - Use selected document instead of active document in FormAssistant pageshow. r=mfinkle
This commit is contained in:
Родитель
f290c1604a
Коммит
6c9d5080ef
|
@ -2938,7 +2938,8 @@ var FormAssistant = {
|
|||
// Reset invalid submit state on each pageshow
|
||||
case "pageshow":
|
||||
let target = aEvent.originalTarget;
|
||||
if (target == content.document || target.ownerDocument == content.document)
|
||||
let selectedDocument = BrowserApp.selectedBrowser.contentDocument;
|
||||
if (target == selectedDocument || target.ownerDocument == selectedDocument)
|
||||
this._invalidSubmit = false;
|
||||
}
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче