Index: Source/WebCore/bindings/v8/PageScriptDebugServer.cpp |
=================================================================== |
--- Source/WebCore/bindings/v8/PageScriptDebugServer.cpp (revision 106847) |
+++ Source/WebCore/bindings/v8/PageScriptDebugServer.cpp (working copy) |
@@ -76,10 +76,12 @@ |
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(); |