mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 918222: Misc null error in browser.js, r=mfinkle
This commit is contained in:
parent
4f5528be3e
commit
0a1fb32765
@ -5136,10 +5136,16 @@ var FormAssistant = {
|
||||
|
||||
// Reset invalid submit state on each pageshow
|
||||
case "pageshow":
|
||||
let target = aEvent.originalTarget;
|
||||
let selectedDocument = BrowserApp.selectedBrowser.contentDocument;
|
||||
if (target == selectedDocument || target.ownerDocument == selectedDocument)
|
||||
this._invalidSubmit = false;
|
||||
if (!this._invalidSubmit)
|
||||
return;
|
||||
|
||||
let selectedBrowser = BrowserApp.selectedBrowser;
|
||||
if (selectedBrowser) {
|
||||
let selectedDocument = selectedBrowser.contentDocument;
|
||||
let target = aEvent.originalTarget;
|
||||
if (target == selectedDocument || target.ownerDocument == selectedDocument)
|
||||
this._invalidSubmit = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user