[Qt] Crash when trying to download blob url
authorAllan Sandfeld Jensen <allan.jensen@digia.com>
Thu, 26 Sep 2013 11:34:48 +0000 (13:34 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 26 Sep 2013 11:35:54 +0000 (13:35 +0200)
commit102ad5434962aac394add4ea1e7c0c21465b8250
treef842a389c70e36a2eb7d9734af23a08d5e3b07ea
parent6704d913bde48a666f8e8a8a0cb737c0c49f581c
[Qt] Crash when trying to download blob url

https://bugs.webkit.org/show_bug.cgi?id=121681

Reviewed by Simon Hausmann.

Source/WebCore:

Resolve any blob URLs before creating a QUrl.

* platform/network/qt/ResourceRequestQt.cpp:
(WebCore::appendBlobResolved):
(WebCore::resolveBlobUrl):
(WebCore::ResourceRequest::toNetworkRequest):

Source/WebKit/qt:

Do not crash if a download was triggered on a resource WebCore handles internally.

* WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore::FrameLoaderClientQt::convertMainResourceLoadToDownload):

Change-Id: I9191eb991be81f69df4328ab54132da3dde15241
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Source/WebCore/platform/network/qt/ResourceRequestQt.cpp
Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp