| Index: Source/core/inspector/PageRuntimeAgent.cpp
|
| diff --git a/Source/core/inspector/PageRuntimeAgent.cpp b/Source/core/inspector/PageRuntimeAgent.cpp
|
| index 97987168cd29596678b7890bd8a8e17942843bba..b9351f7902135b66358b426a0411dda7fee57bd7 100644
|
| --- a/Source/core/inspector/PageRuntimeAgent.cpp
|
| +++ b/Source/core/inspector/PageRuntimeAgent.cpp
|
| @@ -105,7 +105,8 @@ void PageRuntimeAgent::didCreateIsolatedContext(LocalFrame* frame, ScriptState*
|
| InjectedScript PageRuntimeAgent::injectedScriptForEval(ErrorString* errorString, const int* executionContextId)
|
| {
|
| if (!executionContextId) {
|
| - ScriptState* scriptState = ScriptState::forMainWorld(m_inspectedPage->mainFrame());
|
| + // FIXME: Completely broken for OOPI.
|
| + ScriptState* scriptState = ScriptState::forMainWorld(toLocalFrame(m_inspectedPage->mainFrame()));
|
| InjectedScript result = injectedScriptManager()->injectedScriptFor(scriptState);
|
| if (result.isEmpty())
|
| *errorString = "Internal error: main world execution context not found.";
|
|
|