1
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:
Juraj Oravec 2024-12-14 22:09:13 +01:00
parent 6dc4b6d47b
commit 2b4755f136
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -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);