From df487f0726a8d349c1c354d90d3ad1b46f6b42df Mon Sep 17 00:00:00 2001 From: David Rosca Date: Fri, 9 Oct 2015 15:57:35 +0200 Subject: [PATCH] WebHitTestResult: Resolve image url --- src/lib/webengine/webhittestresult.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/webengine/webhittestresult.cpp b/src/lib/webengine/webhittestresult.cpp index 57736226d..1097ad489 100644 --- a/src/lib/webengine/webhittestresult.cpp +++ b/src/lib/webengine/webhittestresult.cpp @@ -170,6 +170,8 @@ void WebHitTestResult::init(const QUrl &url, const QVariantMap &map) if (rect.size() == 4) m_boundingRect = QRect(rect.at(0).toInt(), rect.at(1).toInt(), rect.at(2).toInt(), rect.at(3).toInt()); + if (!m_imageUrl.isEmpty()) + m_imageUrl = url.resolved(m_imageUrl); if (!m_linkUrl.isEmpty()) m_linkUrl = url.resolved(m_linkUrl); if (!m_mediaUrl.isEmpty())