QWebFrame and baseUrl

Petri Damstén petri.damsten at gmail.com
Wed Nov 4 11:27:59 CET 2009


Hi,

Seems that after update to 4.6 webkit scriptengine stopped working. Problem is 
that now baseUrl has to have scheme in it to work. Is this intentional feature 
in 4.6?

Petri

Index: webapplet.cpp
===================================================================
--- webapplet.cpp       (revision 1044595)
+++ webapplet.cpp       (working copy)
@@ -94,9 +94,10 @@
         d->page = 0;
         return false;
     }
-
-    kDebug() << webpage << package()->path() << package()->filePath("html");
-    d->page->mainFrame()->setHtml(dataFor(webpage), QUrl(package()-
>filePath("html")));
+    QUrl url(package()->filePath("html"));
+    url.setScheme("file");
+    kDebug() << webpage << package()->path() << url;
+    d->page->mainFrame()->setHtml(dataFor(webpage), url);
     return true;
 }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20091104/e05d57d5/attachment-0001.sig 


More information about the Plasma-devel mailing list