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

Unified Diff: webkit/glue/weburlloader_impl.cc

Issue 15738007: Protect WebURLLoaderImpl::Context while receiving responses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « content/test/data/error-body-no-crash.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/weburlloader_impl.cc
diff --git a/webkit/glue/weburlloader_impl.cc b/webkit/glue/weburlloader_impl.cc
index 2145ce32586b8d9db3c5b915f00071ee48651043..b57798ac1fe69ffd7debdbd2e6a34415207cc860 100644
--- a/webkit/glue/weburlloader_impl.cc
+++ b/webkit/glue/weburlloader_impl.cc
@@ -651,6 +651,7 @@ void WebURLLoaderImpl::Context::OnReceivedResponse(
}
}
+ scoped_refptr<Context> protect(this);
darin (slow to review) 2013/05/23 14:42:09 This looks like it'll do the trick to me. However
gavinp 2013/05/28 16:25:35 Certainly the caller could, but that would be a bi
client_->didReceiveResponse(loader_, response);
// We may have been cancelled after didReceiveResponse, which would leave us
« no previous file with comments | « content/test/data/error-body-no-crash.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698