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

Unified Diff: webkit/glue/webdevtoolsclient_impl.cc

Issue 125246: DevTools: Fix crash on refresh. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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: webkit/glue/webdevtoolsclient_impl.cc
===================================================================
--- webkit/glue/webdevtoolsclient_impl.cc (revision 18607)
+++ webkit/glue/webdevtoolsclient_impl.cc (working copy)
@@ -67,8 +67,9 @@
resource_content_requests_.take(request_id);
InspectorController* ic = frame_->frame()->page()->inspectorController();
-
- ic->addSourceToFrame(request.mime_type, content, request.frame.get());
+ if (request.frame && request.frame->attached()) {
yurys 2009/06/17 11:43:39 it should be if (request.frame.get()... also put t
+ ic->addSourceToFrame(request.mime_type, content, request.frame.get());
+ }
}
bool WaitingForResponse(int resource_id, Node* frame) {
« 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