Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(757)

Unified Diff: third_party/WebKit/Source/web/WebFrame.cpp

Issue 1635873003: Replicating WebFrame::uniqueName across renderers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dump-render-tree3
Patch Set: Removed unnecessary crbug comment. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..faa411456d8fd0643c74dd1dd4c340ba8260f198 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, nullAtom, uniqueName);
}
frame->toImplBase()->frame()->windowProxyManager()->setGlobals(globals);

Powered by Google App Engine
This is Rietveld 408576698