Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(729)

Unified Diff: content/child/resource_dispatcher.cc

Issue 2400263002: Reland of Clear mojo URLLoaderClient in ResourceDispatcher on cancellation (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index 0850e44e4564221888ca63fc37943db3f9432126..a81921a888cbf4e0a57eeb88833d79d3a3f6438b 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -453,6 +453,10 @@
ReleaseResourcesInMessageQueue(&request_info->deferred_message_queue);
+ // Clear URLLoaderClient to stop receiving further Mojo IPC from the browser
+ // process.
+ it->second->url_loader_client = nullptr;
+
// Always delete the pending_request asyncly so that cancelling the request
// doesn't delete the request context info while its response is still being
// handled.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698