1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Don't use QWebEngineScript::ApplicationWorld with Qt 5.7

It doesn't work because js on qupzilla: pages runs in MainWorld.

Closes #2015
This commit is contained in:
David Rosca 2016-06-27 12:58:26 +02:00
parent 198bfae88f
commit f0e2b938ba

View File

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