From f0e2b938ba9fa6b6881c805c0bb32b10c55ee7fc Mon Sep 17 00:00:00 2001 From: David Rosca Date: Mon, 27 Jun 2016 12:58:26 +0200 Subject: [PATCH] Don't use QWebEngineScript::ApplicationWorld with Qt 5.7 It doesn't work because js on qupzilla: pages runs in MainWorld. Closes #2015 --- src/lib/webengine/webpage.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/webengine/webpage.h b/src/lib/webengine/webpage.h index b1f45db35..5bd91f900 100644 --- a/src/lib/webengine/webpage.h +++ b/src/lib/webengine/webpage.h @@ -39,7 +39,8 @@ class QUPZILLA_EXPORT WebPage : public QWebEnginePage public: enum JsWorld { #if QT_VERSION >= QT_VERSION_CHECK(5,7,0) - SafeJsWorld = QWebEngineScript::ApplicationWorld +// SafeJsWorld = QWebEngineScript::ApplicationWorld + SafeJsWorld = QWebEngineScript::MainWorld #else SafeJsWorld = QWebEngineScript::MainWorld #endif