diff options
Diffstat (limited to 'Source/WebCore/bindings/v8/PageScriptDebugServer.cpp')
-rwxr-xr-x | Source/WebCore/bindings/v8/PageScriptDebugServer.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/WebCore/bindings/v8/PageScriptDebugServer.cpp b/Source/WebCore/bindings/v8/PageScriptDebugServer.cpp index 03e7c57b2..6ccb0f0b2 100755 --- a/Source/WebCore/bindings/v8/PageScriptDebugServer.cpp +++ b/Source/WebCore/bindings/v8/PageScriptDebugServer.cpp @@ -78,9 +78,6 @@ 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; @@ -96,7 +93,7 @@ void PageScriptDebugServer::addListener(ScriptDebugListener* listener, Page* pag } m_listenersMap.set(page, listener); - V8DOMWindowShell* shell = proxy->windowShell(); + V8DOMWindowShell* shell = scriptController->windowShell(); if (!shell->isContextInitialized()) return; v8::Handle<v8::Context> context = shell->context(); |