| Index: content/browser/loader/resource_dispatcher_host_impl.cc
|
| diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
|
| index 1fbd0004096973802910cea4abca6b3ca02c09bd..6e53b68fbbfeb4788b9a92adba5a1bc91ec134df 100644
|
| --- a/content/browser/loader/resource_dispatcher_host_impl.cc
|
| +++ b/content/browser/loader/resource_dispatcher_host_impl.cc
|
| @@ -1762,13 +1762,13 @@ void ResourceDispatcherHostImpl::OnCancelRequest(int request_id) {
|
| return;
|
|
|
| ResourceLoader* loader = GetLoader(child_id, request_id);
|
| - if (!loader) {
|
| - // We probably want to remove this warning eventually, but I wanted to be
|
| - // able to notice when this happens during initial development since it
|
| - // should be rare and may indicate a bug.
|
| - DVLOG(1) << "Canceling a request that wasn't found";
|
| +
|
| + // It is possible that the request has been completed and removed from the
|
| + // loader queue but the client has not processed the request completed message
|
| + // before issuing a cancel. This happens frequently for beacons which are
|
| + // canceled in the response received handler.
|
| + if (!loader)
|
| return;
|
| - }
|
|
|
| loader->CancelRequest(true);
|
| }
|
|
|