diff --git a/webenginepart/src/webenginepage.cpp b/webenginepart/src/webenginepage.cpp --- a/webenginepart/src/webenginepage.cpp +++ b/webenginepart/src/webenginepage.cpp @@ -772,8 +772,10 @@ const QUrl reqUrl (url); const bool actionRequestedByUser = type != QWebEnginePage::NavigationTypeOther; + const bool actionRequestsNewTab = m_type == QWebEnginePage::WebBrowserBackgroundTab || + m_type == QWebEnginePage::WebBrowserTab; - if (actionRequestedByUser) { + if (actionRequestedByUser && !actionRequestsNewTab) { if (!part() && !isMainFrame) { return false; }