Index: webkit/glue/plugins/pepper_url_loader.cc |
=================================================================== |
--- webkit/glue/plugins/pepper_url_loader.cc (revision 69147) |
+++ webkit/glue/plugins/pepper_url_loader.cc (working copy) |
@@ -236,7 +236,15 @@ |
if (rv != PP_OK) |
return rv; |
- loader_.reset(frame->createAssociatedURLLoader()); |
+ frame->dispatchWillSendRequest(web_request); |
+ |
+ // Sets the appcache host id to allow retrieval from the appcache. |
+ if (WebApplicationCacheHostImpl* appcache_host = |
+ WebApplicationCacheHostImpl::FromFrame(frame)) { |
+ appcache_host->willStartSubResourceRequest(web_request); |
+ } |
+ |
+ loader_.reset(WebKit::webKitClient()->createURLLoader()); |
if (!loader_.get()) |
return PP_ERROR_FAILED; |