diff options
Diffstat (limited to 'tests/auto/quick/qmltests/data/tst_loadUrl.qml')
-rw-r--r-- | tests/auto/quick/qmltests/data/tst_loadUrl.qml | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_loadUrl.qml b/tests/auto/quick/qmltests/data/tst_loadUrl.qml index 49db85a3e..2a43e1577 100644 --- a/tests/auto/quick/qmltests/data/tst_loadUrl.qml +++ b/tests/auto/quick/qmltests/data/tst_loadUrl.qml @@ -189,13 +189,6 @@ TestWebEngineView { var loadRequest = null; // Test load of a data URL - // QTBUG-56661: Loading an URL before the data URL load improves the probability - // of the render process crash after the data URL load. - var url = Qt.resolvedUrl("test1.html"); - webEngineView.url = url; - verify(webEngineView.waitForLoadSucceeded()); - webEngineView.clear(); - var dataUrl = "data:text/html,foo"; webEngineView.url = dataUrl; tryCompare(loadRequestArray, "length", 2); @@ -208,11 +201,6 @@ TestWebEngineView { compare(loadRequest.activeUrl, dataUrl); webEngineView.clear(); - // QTBUG-56661: This load might fail on Windows - webEngineView.url = url; - verify(webEngineView.waitForLoadSucceeded()); - webEngineView.clear(); - // Test loadHtml after a failed load var aboutBlank = "about:blank"; webEngineView.url = aboutBlank; // Reset from previous test @@ -249,6 +237,25 @@ TestWebEngineView { webEngineView.clear(); } + function test_QTBUG_56661() { + var url = Qt.resolvedUrl("test1.html"); + + // Warm up phase + webEngineView.url = url; + verify(webEngineView.waitForLoadSucceeded()); + + // Load data URL + var dataUrl = "data:text/html,foo"; + webEngineView.url = dataUrl; + verify(webEngineView.waitForLoadSucceeded()); + + // WebEngine should not try to execute user scripts in the + // render frame of the warm up phase otherwise the renderer + // crashes. + webEngineView.url = url; + verify(webEngineView.waitForLoadSucceeded()); + } + function test_stopStatus() { var loadRequest = null; |