| Index: third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
|
| index 581fcb870b425f1dfa8e7b820a20221af99ff56a..14a1f2f585dd5b8059bd475e24df2afec37ff7c7 100644
|
| --- a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
|
| @@ -97,13 +97,18 @@ void MainThreadDebugger::setClientMessageLoop(PassOwnPtr<ClientMessageLoop> clie
|
| m_clientMessageLoop = std::move(clientMessageLoop);
|
| }
|
|
|
| +void MainThreadDebugger::didClearContextsForFrame(LocalFrame* frame)
|
| +{
|
| + DCHECK(isMainThread());
|
| + if (frame->localFrameRoot() == frame)
|
| + debugger()->resetContextGroup(contextGroupId(frame));
|
| +}
|
| +
|
| void MainThreadDebugger::contextCreated(ScriptState* scriptState, LocalFrame* frame, SecurityOrigin* origin)
|
| {
|
| ASSERT(isMainThread());
|
| v8::HandleScope handles(scriptState->isolate());
|
| DOMWrapperWorld& world = scriptState->world();
|
| - if (frame->localFrameRoot() == frame && world.isMainWorld())
|
| - debugger()->resetContextGroup(contextGroupId(frame));
|
| debugger()->contextCreated(V8ContextInfo(scriptState->context(), contextGroupId(frame), world.isMainWorld(), origin ? origin->toRawString() : "", world.isIsolatedWorld() ? world.isolatedWorldHumanReadableName() : "", IdentifiersFactory::frameId(frame), scriptState->getExecutionContext()->isDocument()));
|
| }
|
|
|
|
|