diff options
author | Patrick Scott <phanna@android.com> | 2010-03-04 07:54:25 -0500 |
---|---|---|
committer | Patrick Scott <phanna@android.com> | 2010-03-04 07:56:37 -0500 |
commit | f220314560fcdd9c3188bddf409f31ad7188fefb (patch) | |
tree | 7357161ee990846d6733f84b5bceeb6ddb85e6b2 /WebCore/loader | |
parent | e58dffb37ac1ec127575ed17b47adf1ed731cf0a (diff) | |
download | external_webkit-f220314560fcdd9c3188bddf409f31ad7188fefb.zip external_webkit-f220314560fcdd9c3188bddf409f31ad7188fefb.tar.gz external_webkit-f220314560fcdd9c3188bddf409f31ad7188fefb.tar.bz2 |
Use the complete url when blocking images.
Image urls that are relative to a base url need to be resolved before looking at
the scheme.
Bug: 2455482
Diffstat (limited to 'WebCore/loader')
-rw-r--r-- | WebCore/loader/DocLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/loader/DocLoader.cpp b/WebCore/loader/DocLoader.cpp index 54dc733..8c0a1b2 100644 --- a/WebCore/loader/DocLoader.cpp +++ b/WebCore/loader/DocLoader.cpp @@ -331,7 +331,7 @@ bool DocLoader::shouldBlockNetworkImage(const String& url) const if (!m_blockNetworkImage) return false; - KURL kurl(ParsedURLString, url); + KURL kurl = m_doc->completeURL(url); if (kurl.protocolIs("http") || kurl.protocolIs("https")) return true; |