ignore webchannel events received after webview deleted

thanks to David for the report
This commit is contained in:
Damien Elmes 2017-08-07 13:12:47 +10:00
parent 27f992c6b4
commit b0213b9fd7

View File

@ -224,6 +224,11 @@ body { zoom: %f; %s }
openLink(url) openLink(url)
def _onBridgeCmd(self, cmd): def _onBridgeCmd(self, cmd):
# ignore webchannel messages that arrive after underlying webview
# deleted
if sip.isdeleted(self):
return
if cmd == "domDone": if cmd == "domDone":
self._domDone = True self._domDone = True
# run through any pending js calls # run through any pending js calls