| Index: content/child/web_url_loader_impl.cc
|
| diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
|
| index c3431b5649d5b4c78ccd81b817636e861b7b3d6d..a1a5beb4b281d6f4a625d33b26f497db68b30b81 100644
|
| --- a/content/child/web_url_loader_impl.cc
|
| +++ b/content/child/web_url_loader_impl.cc
|
| @@ -778,6 +778,11 @@ bool WebURLLoaderImpl::Context::CanHandleDataURLRequestLocally() const {
|
| if (request_.downloadToFile())
|
| return false;
|
|
|
| + // Data url requests from object tags may need to be intercepted as streams
|
| + // and so need to be sent to the browser.
|
| + if (request_.requestContext() == WebURLRequest::RequestContextObject)
|
| + return false;
|
| +
|
| // Optimize for the case where we can handle a data URL locally. We must
|
| // skip this for data URLs targetted at frames since those could trigger a
|
| // download.
|
|
|