mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
WebPage: Return early from acceptNavigationRequest when closing app
QtWebEngine is calling this method from qAddPostRoutine function and it sometimes crashes there in tests on exit.
This commit is contained in:
parent
5152e514a0
commit
ec84df81e0
@ -397,6 +397,10 @@ void WebPage::setupWebChannelForUrl(const QUrl &url)
|
||||
|
||||
bool WebPage::acceptNavigationRequest(const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame)
|
||||
{
|
||||
if (mApp->isClosing()) {
|
||||
return QWebEnginePage::acceptNavigationRequest(url, type, isMainFrame);
|
||||
}
|
||||
|
||||
if (!mApp->plugins()->acceptNavigationRequest(this, url, type, isMainFrame))
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user