summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-17 12:02:36 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-17 12:02:36 +0000
commit4ea6ee7c953b771ebedf1a319db4107debaf16ab (patch)
tree53ca5bc024dfc03194291f3c58225c37fcf62ea4 /webkit
parentfe4f06d49ddccb4f18d9056b85417eb925342ae9 (diff)
downloadchromium_src-4ea6ee7c953b771ebedf1a319db4107debaf16ab.zip
chromium_src-4ea6ee7c953b771ebedf1a319db4107debaf16ab.tar.gz
chromium_src-4ea6ee7c953b771ebedf1a319db4107debaf16ab.tar.bz2
DevTools: Fix crash on refresh.
BUG=14221 Review URL: http://codereview.chromium.org/125246 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18608 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/webdevtoolsclient_impl.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/glue/webdevtoolsclient_impl.cc b/webkit/glue/webdevtoolsclient_impl.cc
index 2963946..085a0b8 100644
--- a/webkit/glue/webdevtoolsclient_impl.cc
+++ b/webkit/glue/webdevtoolsclient_impl.cc
@@ -67,8 +67,9 @@ class ToolsAgentNativeDelegateImpl : public ToolsAgentNativeDelegate {
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()) {
+ ic->addSourceToFrame(request.mime_type, content, request.frame.get());
+ }
}
bool WaitingForResponse(int resource_id, Node* frame) {