From 227279bf2f22c740f3f2fdc34f1032d4177dc32a Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Fri, 28 May 2021 12:31:28 +0200 Subject: Move QQuickWebEngineNavigationRequest to Core Adds navigationRequested() to QWebEnginePage and exposes more information about navigation requests than the old acceptNavigationRequest() method. Change-Id: Ibb8d750bacd1060c3086ffe2c85336abd216bab0 Reviewed-by: Kirill Burtsev --- tests/auto/quick/qmltests/data/tst_navigationRequested.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/auto/quick/qmltests') diff --git a/tests/auto/quick/qmltests/data/tst_navigationRequested.qml b/tests/auto/quick/qmltests/data/tst_navigationRequested.qml index a24b8f0d4..bb2864a7d 100644 --- a/tests/auto/quick/qmltests/data/tst_navigationRequested.qml +++ b/tests/auto/quick/qmltests/data/tst_navigationRequested.qml @@ -65,14 +65,14 @@ TestWebEngineView { } else { attributes.iframeUrl = request.url if (shouldIgnoreSubFrameRequests) { - request.action = WebEngineView.IgnoreRequest + request.action = WebEngineNavigationRequest.IgnoreRequest } } - if (request.navigationType === WebEngineView.LinkClickedNavigation) { + if (request.navigationType === WebEngineNavigationRequest.LinkClickedNavigation) { attributes.linkClickedNavigationRequested = true if (shouldIgnoreLinkClicks) { - request.action = WebEngineView.IgnoreRequest + request.action = WebEngineNavigationRequest.IgnoreRequest attributes.linkClickedNavigationIgnored = true } } -- cgit v1.2.3