| Index: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
|
| diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
|
| index 7989e4075e9232c8b875e7a2932a71b645731d05..43678a4797e470ea8be131307acd57e63a8934a7 100644
|
| --- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
|
| +++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
|
| @@ -915,7 +915,7 @@ void ResourceFetcher::didFailLoading(const Resource* resource, const ResourceErr
|
| context().dispatchDidFail(resource->identifier(), error, isInternalRequest);
|
| }
|
|
|
| -void ResourceFetcher::didReceiveResponse(const Resource* resource, const ResourceResponse& response)
|
| +void ResourceFetcher::didReceiveResponse(Resource* resource, const ResourceResponse& response)
|
| {
|
| // If the response is fetched via ServiceWorker, the original URL of the response could be different from the URL of the request.
|
| // We check the URL not to load the resources which are forbidden by the page CSP.
|
| @@ -929,7 +929,7 @@ void ResourceFetcher::didReceiveResponse(const Resource* resource, const Resourc
|
| return;
|
| }
|
| }
|
| - context().dispatchDidReceiveResponse(resource->identifier(), response, resource->resourceRequest().frameType(), resource->resourceRequest().requestContext(), resource->loader());
|
| + context().dispatchDidReceiveResponse(resource->identifier(), response, resource->resourceRequest().frameType(), resource->resourceRequest().requestContext(), resource);
|
| }
|
|
|
| void ResourceFetcher::didReceiveData(const Resource* resource, const char* data, int dataLength, int encodedDataLength)
|
|
|