Index: content/child/resource_dispatcher.cc |
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc |
index 3105e9c2acdb970701b32c426104e0dcd864f728..38a98f84b98dff319dbb9479c81808ccc9281171 100644 |
--- a/content/child/resource_dispatcher.cc |
+++ b/content/child/resource_dispatcher.cc |
@@ -489,9 +489,10 @@ void ResourceDispatcher::Cancel(int request_id) { |
should_dump = false; |
} |
} |
- // Cancel the request, and clean it up so the bridge will receive no more |
- // messages. |
- message_sender_->Send(new ResourceHostMsg_CancelRequest(request_id)); |
+ // Cancel the request if it didn't complete, and clean it up so the bridge |
+ // will receive no more messages. |
+ if (info.completion_time.is_null()) |
+ message_sender_->Send(new ResourceHostMsg_CancelRequest(request_id)); |
RemovePendingRequest(request_id); |
} |