-
commit-queue@webkit.org authored
Source/WebCore: [Qt] QWebSettings::setUserStyleSheetUrl() does not work with windows paths that contain drive letters https://bugs.webkit.org/show_bug.cgi?id=34884 KURL::path() alone does not handle removing the leading slash from a windows file path. Using QUrl::toLocalFile() will turn file:///C:/path into C:/path appropriately. Patch by Jarred Nicholls <jarred@sencha.com> on 2011-09-10 Reviewed by Andreas Kling. * platform/qt/KURLQt.cpp: (WebCore::KURL::fileSystemPath): Source/WebKit/qt: [Qt] QWebSettings::setUserStyleSheetUrl() does not work with windows paths that contain drive letters https://bugs.webkit.org/show_bug.cgi?id=34884 KURL::path() alone does not handle removing the leading slash from a windows file path. Using QUrl::toLocalFile() will turn file:///C:/path into C:/path appropriately. New test case that ensures a user stylesheet from the file system will load correctly on all platforms. Patch by Jarred Nicholls <jarred@sencha.com> on 2011-09-10 Reviewed by Andreas Kling. * tests/qwebpage/resources/user.css: Added. (p): * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::userStyleSheetFromFile): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6ccd2782