Try to stabilize renderer process test

This commit is contained in:
Florian Bruhin 2017-07-25 16:56:38 +02:00
parent 3de0b15073
commit 792a01ba6d
2 changed files with 6 additions and 1 deletions

View File

@ -708,12 +708,16 @@ class TabbedBrowser(tabwidget.TabWidget):
}
msg = messages[status]
def show_error_page(html):
tab.set_html(html)
log.webview.debug("Showed error page for renderer termination")
if qtutils.version_check('5.9'):
url_string = tab.url(requested=True).toDisplayString()
error_page = jinja.render(
'error.html', title="Error loading {}".format(url_string),
url=url_string, error=msg, icon='')
QTimer.singleShot(100, lambda: tab.set_html(error_page))
QTimer.singleShot(100, lambda: show_error_page(error_page))
log.webview.error(msg)
else:
# WORKAROUND for https://bugreports.qt.io/browse/QTBUG-58698

View File

@ -700,6 +700,7 @@ Feature: Various utility commands.
And I open data/numbers/2.txt in a new tab
And I run :open chrome://kill
And I wait for "Renderer process was killed" in the log
And I wait for "Showed error page for renderer termination" in the log
And I open data/numbers/3.txt
Then no crash should happen