| Index: third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| index 6e8dbc7ca9c56d4b19ff438aa396fe8e1ff3c2c9..c4b17c2929d89231f5dc4dcdba87029728503caf 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| @@ -265,6 +265,11 @@ bool WindowProxy::initialize()
|
| origin = m_world->isolatedWorldSecurityOrigin();
|
| setSecurityToken(origin);
|
| }
|
| +
|
| + // All interfaces must be registered to V8PerContextData.
|
| + // So we explicitly call constructorForType for the global object.
|
| + V8PerContextData::from(context)->constructorForType(&V8Window::wrapperTypeInfo);
|
| +
|
| if (m_frame->isLocalFrame()) {
|
| LocalFrame* frame = toLocalFrame(m_frame);
|
| MainThreadDebugger::instance()->contextCreated(m_scriptState.get(), frame, origin);
|
|
|