diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 12:02:36 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 12:02:36 +0000 |
commit | 4ea6ee7c953b771ebedf1a319db4107debaf16ab (patch) | |
tree | 53ca5bc024dfc03194291f3c58225c37fcf62ea4 /webkit | |
parent | fe4f06d49ddccb4f18d9056b85417eb925342ae9 (diff) | |
download | chromium_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.cc | 5 |
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) { |