mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-19 18:26:34 +01:00
Add missing default SiteSettings for intenal pages
BUG: 497463 Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
6dc4b6d47b
commit
2b4755f136
@ -473,6 +473,12 @@ bool WebPage::acceptNavigationRequest(const QUrl &url, QWebEnginePage::Navigatio
|
||||
settings()->setAttribute(QWebEngineSettings::AllowGeolocationOnInsecureOrigins, false);
|
||||
settings()->setAttribute(QWebEngineSettings::PlaybackRequiresUserGesture, mApp->webSettings()->testAttribute(QWebEngineSettings::PlaybackRequiresUserGesture));
|
||||
settings()->setAttribute(QWebEngineSettings::WebRTCPublicInterfacesOnly, false);
|
||||
#if QTWEBENGINECORE_VERSION >= QT_VERSION_CHECK(6, 6, 0)
|
||||
settings()->setAttribute(QWebEngineSettings::ReadingFromCanvasEnabled, mApp->webSettings()->testAttribute(QWebEngineSettings::ReadingFromCanvasEnabled));
|
||||
#endif
|
||||
#if QTWEBENGINECORE_VERSION >= QT_VERSION_CHECK(6, 7, 0)
|
||||
settings()->setAttribute(QWebEngineSettings::ForceDarkMode, mApp->webSettings()->testAttribute(QWebEngineSettings::ForceDarkMode));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Q_EMIT navigationRequestAccepted(url, type, isMainFrame);
|
||||
|
Loading…
Reference in New Issue
Block a user