summaryrefslogtreecommitdiffstats
path: root/src/core/content_browser_client_qt.cpp
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2022-06-13 17:32:21 +0200
committerMichal Klocek <michal.klocek@qt.io>2022-06-21 10:24:48 +0200
commitddb5528bc3f93f1d09c0e4fc33026ced08edf147 (patch)
tree354f340c05f0cf45c91e795c95206a1ae8333951 /src/core/content_browser_client_qt.cpp
parent89eb58b28e856663cdc1ad59d5fdd60115e801ea (diff)
Minor. Remove superfluous check
Same check is two lines below. Pick-to: 6.4 6.3 Change-Id: If9a76ec29f7667d940f2cff231bb30facd621908 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/content_browser_client_qt.cpp')
-rw-r--r--src/core/content_browser_client_qt.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp
index 0fdf1f397..9f88b3d07 100644
--- a/src/core/content_browser_client_qt.cpp
+++ b/src/core/content_browser_client_qt.cpp
@@ -835,10 +835,6 @@ static bool navigationThrottleCallback(content::WebContents *source,
if (params.is_external_protocol() && !profile->profileAdapter()->urlSchemeHandler(toQByteArray(params.url().scheme())))
return false;
- WebContentsViewQt *view = WebContentsViewQt::from(static_cast<content::WebContentsImpl *>(source)->GetView());
- if (!view->client())
- return false;
-
bool navigationAccepted = true;
WebContentsAdapterClient *client =