Try to stabilize renderer process test
This commit is contained in:
parent
3de0b15073
commit
792a01ba6d
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user