| Index: Source/bindings/v8/PageScriptDebugServer.cpp
|
| diff --git a/Source/bindings/v8/PageScriptDebugServer.cpp b/Source/bindings/v8/PageScriptDebugServer.cpp
|
| index db235b45b0ff353fa0dd79a4199b71e03978ec1d..ed4d52261e2ab58f25515aacc5d47639ac453881 100644
|
| --- a/Source/bindings/v8/PageScriptDebugServer.cpp
|
| +++ b/Source/bindings/v8/PageScriptDebugServer.cpp
|
| @@ -90,8 +90,8 @@ PageScriptDebugServer::PageScriptDebugServer()
|
|
|
| void PageScriptDebugServer::addListener(ScriptDebugListener* listener, Page* page)
|
| {
|
| - ScriptController* scriptController = page->mainFrame()->script();
|
| - if (!scriptController->canExecuteScripts(NotAboutToExecuteScript))
|
| + ScriptController& scriptController = page->mainFrame()->script();
|
| + if (!scriptController.canExecuteScripts(NotAboutToExecuteScript))
|
| return;
|
|
|
| v8::HandleScope scope(m_isolate);
|
| @@ -106,7 +106,7 @@ void PageScriptDebugServer::addListener(ScriptDebugListener* listener, Page* pag
|
| }
|
| m_listenersMap.set(page, listener);
|
|
|
| - V8WindowShell* shell = scriptController->existingWindowShell(mainThreadNormalWorld());
|
| + V8WindowShell* shell = scriptController.existingWindowShell(mainThreadNormalWorld());
|
| if (!shell || !shell->isContextInitialized())
|
| return;
|
| v8::Local<v8::Context> context = shell->context();
|
|
|