Index: Source/bindings/v8/PageScriptDebugServer.cpp |
diff --git a/Source/bindings/v8/PageScriptDebugServer.cpp b/Source/bindings/v8/PageScriptDebugServer.cpp |
index 0461708ba3daf39390e52b319d994a1796448216..196ed62d2a9ba7220ba6e6838b5501952787f2be 100644 |
--- a/Source/bindings/v8/PageScriptDebugServer.cpp |
+++ b/Source/bindings/v8/PageScriptDebugServer.cpp |
@@ -109,7 +109,7 @@ PageScriptDebugServer::~PageScriptDebugServer() |
void PageScriptDebugServer::addListener(ScriptDebugListener* listener, Page* page) |
{ |
- ScriptController& scriptController = page->mainFrame()->script(); |
+ ScriptController& scriptController = page->deprecatedLocalMainFrame()->script(); |
if (!scriptController.canExecuteScripts(NotAboutToExecuteScript)) |
return; |