fix QWebSettings::setUserStyleSheetUrl() not working with windows paths
authorAshish Kulkarni <kulkarni.ashish@gmail.com>
Mon, 5 May 2014 12:39:18 +0000 (18:09 +0530)
committerAshish Kulkarni <kulkarni.ashish@gmail.com>
Sat, 13 Dec 2014 17:27:17 +0000 (18:27 +0100)
commit7d311bc5511f908fa82d9bb74c34e3d9c4df8d55
tree79bf5d132c36aaab089565c11fc752f610cffce6
parent325b6ef5d68a7066df9fb6cf48474257e3d57ea9
fix QWebSettings::setUserStyleSheetUrl() not working with windows paths

QWebSettings::setUserStyleSheetUrl() does not work with windows paths
that contain drive letters.

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

This fixes https://bugs.webkit.org/show_bug.cgi?id=34884.

Change-Id: I37a1482b67447be6ea6a10966cf59c9159db83cd
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
src/3rdparty/webkit/Source/WebCore/platform/qt/KURLQt.cpp