1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-02-24 11:53:09 +01:00

Fix resolvers on qt 4.8, baseUrl is required for html5 security policy stuff for localStorage

This commit is contained in:
Leo Franchi 2011-08-17 14:35:27 -04:00
parent 31d19196e2
commit 4abb53ccdf

View File

@ -183,7 +183,7 @@ QtScriptResolver::init()
}
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
m_engine->mainFrame()->addToJavaScriptWindowObject( "Tomahawk", m_resolverHelper );