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.
remotes/origin/Falkon/3.0
David Rosca 8 years ago
parent 5152e514a0
commit ec84df81e0
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
  1. 4
      src/lib/webengine/webpage.cpp

@ -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…
Cancel
Save