| Index: webkit/glue/devtools/debugger_agent_impl.cc
|
| ===================================================================
|
| --- webkit/glue/devtools/debugger_agent_impl.cc (revision 15038)
|
| +++ webkit/glue/devtools/debugger_agent_impl.cc (working copy)
|
| @@ -61,12 +61,15 @@
|
| webdevtools_agent_->ForceRepaint();
|
| }
|
|
|
| -void DebuggerAgentImpl::CreateUtilityContext(
|
| +void DebuggerAgentImpl::ResetUtilityContext(
|
| Document* document,
|
| v8::Persistent<v8::Context>* context) {
|
| if (!context->IsEmpty()) {
|
| context->Dispose();
|
| }
|
| + if (!document) {
|
| + return;
|
| + }
|
| v8::HandleScope scope;
|
|
|
| // TODO(pfeldman): Validate against Soeren.
|
|
|