Delay showing the "renderer process killed" error page a bit
Sometimes, we get another error with "Renderer process was killed" and the data: URL for the error page. This is probably because the renderer process wasn't restarted yet. This hopefully helps.
This commit is contained in:
parent
79c088d3a4
commit
3de0b15073
@ -713,7 +713,7 @@ class TabbedBrowser(tabwidget.TabWidget):
|
||||
error_page = jinja.render(
|
||||
'error.html', title="Error loading {}".format(url_string),
|
||||
url=url_string, error=msg, icon='')
|
||||
QTimer.singleShot(0, lambda: tab.set_html(error_page))
|
||||
QTimer.singleShot(100, lambda: tab.set_html(error_page))
|
||||
log.webview.error(msg)
|
||||
else:
|
||||
# WORKAROUND for https://bugreports.qt.io/browse/QTBUG-58698
|
||||
|
Loading…
Reference in New Issue
Block a user