| Index: third_party/WebKit/Source/core/page/FrameTree.cpp
|
| diff --git a/third_party/WebKit/Source/core/page/FrameTree.cpp b/third_party/WebKit/Source/core/page/FrameTree.cpp
|
| index cb492e67a9a8b82249eb68df941bd2440ceac657..0f045e016e96780dfc1b53d9d08944ae641d65ad 100644
|
| --- a/third_party/WebKit/Source/core/page/FrameTree.cpp
|
| +++ b/third_party/WebKit/Source/core/page/FrameTree.cpp
|
| @@ -149,6 +149,9 @@ unsigned FrameTree::ChildCount() const {
|
| }
|
|
|
| Frame* FrameTree::Find(const AtomicString& name) const {
|
| + // Named frame lookup should always be relative to a local frame.
|
| + DCHECK(this_frame_->IsLocalFrame());
|
| +
|
| if (EqualIgnoringASCIICase(name, "_self") ||
|
| EqualIgnoringASCIICase(name, "_current") || name.IsEmpty())
|
| return this_frame_;
|
|
|