1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-09-01 18:04:05 +02:00

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

(cherry picked from commit 4abb53ccdf)
This commit is contained in:
Leo Franchi
2011-08-17 14:35:27 -04:00
parent 7971e7aadc
commit bfbac296b0

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 );