mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
Fix resolvers on qt 4.8, baseUrl is required for html5 security policy stuff for localStorage
This commit is contained in:
@@ -183,7 +183,7 @@ QtScriptResolver::init()
|
|||||||
}
|
}
|
||||||
const QByteArray scriptContents = scriptFile.readAll();
|
const QByteArray scriptContents = scriptFile.readAll();
|
||||||
|
|
||||||
m_engine->mainFrame()->setHtml( "<html><body></body></html>" );
|
m_engine->mainFrame()->setHtml( "<html><body></body></html>", QUrl( "file:///invalid/file/for/security/policy" ) );
|
||||||
|
|
||||||
// add c++ part of tomahawk javascript library
|
// add c++ part of tomahawk javascript library
|
||||||
m_engine->mainFrame()->addToJavaScriptWindowObject( "Tomahawk", m_resolverHelper );
|
m_engine->mainFrame()->addToJavaScriptWindowObject( "Tomahawk", m_resolverHelper );
|
||||||
|
Reference in New Issue
Block a user