| Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| index 1ec2a765cac93a1a2b36879178dd9ab9dd00a619..1936d77043bc0ed14a0385b0fbf6988c31c5232c 100644
|
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1822,6 +1822,12 @@ PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::createChildFrame(const Fra
|
| }
|
| webframeChild->frame()->loader().load(newRequest, loadType, childItem.get());
|
|
|
| + // Apply the creating worldId to the created child frame.
|
| + if (v8::Isolate::GetCurrent()->InContext()) {
|
| + DOMWrapperWorld& world = DOMWrapperWorld::current(v8::Isolate::GetCurrent());
|
| + ScriptState::forMainWorld(webframeChild->frame())->world().setParentWorldId(world.originWorldId());
|
| + }
|
| +
|
| // Note a synchronous navigation (about:blank) would have already processed
|
| // onload, so it is possible for the child frame to have already been
|
| // detached by script in the page.
|
|
|