| Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| index a54f1e1f039db634ac70a05e9eb21ba8d9442c89..1eea7f3e818e95d546c51c379fece1e8e326aa87 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| @@ -805,27 +805,6 @@ EphemeralRange LocalFrame::rangeForPoint(const IntPoint& framePoint) {
|
| return EphemeralRange();
|
| }
|
|
|
| -bool LocalFrame::isURLAllowed(const KURL& url) const {
|
| - // Exempt about: URLs from self-reference check.
|
| - if (url.protocolIsAbout())
|
| - return true;
|
| -
|
| - // We allow one level of self-reference because some sites depend on that,
|
| - // but we don't allow more than one.
|
| - bool foundSelfReference = false;
|
| - for (const Frame* frame = this; frame; frame = frame->tree().parent()) {
|
| - if (!frame->isLocalFrame())
|
| - continue;
|
| - if (equalIgnoringFragmentIdentifier(toLocalFrame(frame)->document()->url(),
|
| - url)) {
|
| - if (foundSelfReference)
|
| - return false;
|
| - foundSelfReference = true;
|
| - }
|
| - }
|
| - return true;
|
| -}
|
| -
|
| bool LocalFrame::shouldReuseDefaultView(const KURL& url) const {
|
| // Secure transitions can only happen when navigating from the initial empty
|
| // document.
|
|
|