ignore webchannel events received after webview deleted
thanks to David for the report
This commit is contained in:
parent
27f992c6b4
commit
b0213b9fd7
@ -224,6 +224,11 @@ body { zoom: %f; %s }
|
||||
openLink(url)
|
||||
|
||||
def _onBridgeCmd(self, cmd):
|
||||
# ignore webchannel messages that arrive after underlying webview
|
||||
# deleted
|
||||
if sip.isdeleted(self):
|
||||
return
|
||||
|
||||
if cmd == "domDone":
|
||||
self._domDone = True
|
||||
# run through any pending js calls
|
||||
|
Loading…
Reference in New Issue
Block a user