Index: webkit/glue/weburlloader_impl.cc |
diff --git a/webkit/glue/weburlloader_impl.cc b/webkit/glue/weburlloader_impl.cc |
index c6bcab8732da198796f6acf6f7de4c9bee2e20aa..5acf64a8f36a2cb486b29670ea40af86829b223e 100644 |
--- a/webkit/glue/weburlloader_impl.cc |
+++ b/webkit/glue/weburlloader_impl.cc |
@@ -689,6 +689,13 @@ bool WebURLLoaderImpl::Context::CanHandleDataURL(const GURL& url) const { |
// reasons as well as to support unit tests, which do not have an underlying |
// ResourceLoaderBridge implementation. |
+#if defined(OS_ANDROID) |
+ // For compatibility reasons on Android we need to expose top-level data:// |
+ // to the browser. |
+ if (request_.targetType() == WebURLRequest::TargetIsMainFrame) |
+ return false; |
+#endif |
+ |
if (request_.targetType() != WebURLRequest::TargetIsMainFrame && |
request_.targetType() != WebURLRequest::TargetIsSubframe) |
return true; |