Ignore _on_history_trigger for destroyed tabs

This commit is contained in:
Florian Bruhin 2017-10-09 07:12:44 +02:00
parent e95260092c
commit 83aa936276

View File

@ -650,6 +650,15 @@ class WebEngineTab(browsertab.AbstractTab):
@pyqtSlot()
def _on_history_trigger(self):
try:
self._widget.page()
except RuntimeError:
# Looks like this slot can be triggered on destroyed tabs:
# https://crashes.qutebrowser.org/view/3abffbed (Qt 5.9.1)
# wrapped C/C++ object of type WebEngineView has been deleted
log.misc.debug("Ignoring history trigger for destroyed tab")
return
url = self.url()
requested_url = self.url(requested=True)