Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
index 130fa525436b6c9a99074fab4f406eab4484d746..20a01b9f6b24d98edfe157a16ae76c19f7f7615c 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
@@ -1056,6 +1056,9 @@ void LocalDOMWindow::setName(const AtomicString& name) |
if (!isCurrentlyDisplayedInFrame()) |
return; |
+ if (name == frame()->tree().name()) |
+ return; |
+ |
frame()->tree().setName(name); |
ASSERT(frame()->loader().client()); |
frame()->loader().client()->didChangeName(name, frame()->tree().uniqueName()); |
dcheng
2016/06/15 11:18:35
I'd suggest moving this into FrameTree::setName()
Łukasz Anforowicz
2016/06/15 17:46:22
I think this is a great idea. At the same time, I
|