Index: third_party/WebKit/Source/web/WebFrame.cpp |
diff --git a/third_party/WebKit/Source/web/WebFrame.cpp b/third_party/WebKit/Source/web/WebFrame.cpp |
index 5ea8859a994337fe5625a063aa2bd1263aa77c5f..338b4610d0e5bf1ea0b39a709a44c1d8ac6c3138 100644 |
--- a/third_party/WebKit/Source/web/WebFrame.cpp |
+++ b/third_party/WebKit/Source/web/WebFrame.cpp |
@@ -70,6 +70,7 @@ bool WebFrame::swap(WebFrame* frame) |
FrameHost* host = oldFrame->host(); |
AtomicString name = oldFrame->tree().name(); |
+ AtomicString uniqueName = oldFrame->tree().uniqueName(); |
FrameOwner* owner = oldFrame->owner(); |
oldFrame->disconnectOwnerElement(); |
@@ -101,7 +102,7 @@ bool WebFrame::swap(WebFrame* frame) |
localFrame.page()->setMainFrame(&localFrame); |
} |
} else { |
- toWebRemoteFrameImpl(frame)->initializeCoreFrame(host, owner, name, nullAtom); |
+ toWebRemoteFrameImpl(frame)->initializeCoreFrame(host, owner, name, uniqueName); |
} |
frame->toImplBase()->frame()->windowProxyManager()->setGlobals(globals); |