Treat qrc protocol the same as file protocol in loading
authorAllan Sandfeld Jensen <allan.jensen@digia.com>
Fri, 28 Feb 2014 11:30:36 +0000 (12:30 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 28 Feb 2014 11:48:59 +0000 (12:48 +0100)
commitae197e4992d9f8c63bf5d0c0f72f712dbe09b1ae
treefafd8f6c27b77535ebd4cdc3409f9cb834a5e35b
parent6cec10879f382bbd007a5a3819d37e49de2c3c7a
Treat qrc protocol the same as file protocol in loading

KUrl's with qrc protocol was not recognized as local files which
triggered mimetype sniffing that doesn't support SVG and break it.

This patch makes qrc urls be treated as local files and modifies the
one place were KURL::isLocalFile depended on the protocol being exactly
"file" and not "qrc".

Task-number: QTBUG-37058
Change-Id: Iad35ebc1fd72049484d2efa1f9caee96060fb236
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Source/WebCore/platform/KURL.cpp
Source/WebCore/platform/network/ResourceHandle.cpp
Source/WebCore/platform/qt/KURLQt.cpp