diff options
Diffstat (limited to 'Source/WebCore/bindings/v8/PageScriptDebugServer.cpp')
-rwxr-xr-x | Source/WebCore/bindings/v8/PageScriptDebugServer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/WebCore/bindings/v8/PageScriptDebugServer.cpp b/Source/WebCore/bindings/v8/PageScriptDebugServer.cpp index da2926a5f..18f7df7ee 100755 --- a/Source/WebCore/bindings/v8/PageScriptDebugServer.cpp +++ b/Source/WebCore/bindings/v8/PageScriptDebugServer.cpp @@ -76,10 +76,12 @@ PageScriptDebugServer::PageScriptDebugServer() void PageScriptDebugServer::addListener(ScriptDebugListener* listener, Page* page) { + V8Proxy* proxy = V8Proxy::retrieve(page->mainFrame()); + if (!proxy) + return; ScriptController* scriptController = page->mainFrame()->script(); if (!scriptController->canExecuteScripts(NotAboutToExecuteScript)) return; - V8Proxy* proxy = V8Proxy::retrieve(page->mainFrame()); v8::HandleScope scope; v8::Local<v8::Context> debuggerContext = v8::Debug::GetDebugContext(); |