Index: third_party/WebKit/Source/core/fetch/Resource.cpp |
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp |
index 717f291c69c3e63d8b372b99fde16189dbc53082..1ea83e07ee70a17ca369702e8fc6689013292613 100644 |
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp |
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp |
@@ -274,7 +274,10 @@ bool Resource::loadLocallyDataURL(const ResourceRequest& request, const Resource |
WrappedResourceRequest wrappedRequest(request); |
WebString mimetype; |
WebString charset; |
- RefPtr<SharedBuffer> data = PassRefPtr<SharedBuffer>(Platform::current()->parseDataURL(request.url(), mimetype, charset)); |
+ WebData webData; |
+ if (!Platform::current()->parseDataURLIfCanBeHandledLocally(wrappedRequest, mimetype, charset, webData)) |
+ return false; |
+ RefPtr<SharedBuffer> data = PassRefPtr<SharedBuffer>(webData); |
if (!data) |
return false; |