Commit e630d7a2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Disable block external url

parent ed51e4d0
Pipeline #56676 passed with stage
in 17 minutes and 2 seconds
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <QMenu> #include <QMenu>
#include <QWebEngineHistory> #include <QWebEngineHistory>
#include <QWebEngineSettings> #include <QWebEngineSettings>
#include <WebEngineViewer/BlockExternalResourcesUrlInterceptor>
#include <WebEngineViewer/InterceptorManager> #include <WebEngineViewer/InterceptorManager>
#include <WebEngineViewer/LoadExternalReferencesUrlInterceptor> #include <WebEngineViewer/LoadExternalReferencesUrlInterceptor>
#include <WebEngineViewer/WebHitTest> #include <WebEngineViewer/WebHitTest>
...@@ -33,6 +34,9 @@ AkrWebEngineViewer::AkrWebEngineViewer(KActionCollection *ac, QWidget *parent) ...@@ -33,6 +34,9 @@ AkrWebEngineViewer::AkrWebEngineViewer(KActionCollection *ac, QWidget *parent)
if (mExternalReference) { if (mExternalReference) {
mExternalReference->setAllowExternalContent(true); mExternalReference->setAllowExternalContent(true);
} }
if (mBlockExternalReference) { // Don't block element
mBlockExternalReference->setEnabled(false);
}
// TODO update settings when we change config // TODO update settings when we change config
settings()->setAttribute(QWebEngineSettings::JavascriptEnabled, Settings::enableJavascript()); settings()->setAttribute(QWebEngineSettings::JavascriptEnabled, Settings::enableJavascript());
settings()->setAttribute(QWebEngineSettings::PluginsEnabled, false); settings()->setAttribute(QWebEngineSettings::PluginsEnabled, false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment