Chromium Code Reviews| 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 16bb9bbbca38286bc035ee4e0b8247c36dd9b10b..6058f487bdcc8a948b85af45099699891980db71 100644 |
| --- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
| +++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
| @@ -754,6 +754,10 @@ EphemeralRange LocalFrame::rangeForPoint(const IntPoint& framePoint) |
| bool LocalFrame::isURLAllowed(const KURL& url) const |
| { |
| + // Exempt about URLs from self-reference check. |
|
dcheng
2015/11/18 03:23:19
Nit: s/about/about:/
Xiaocheng
2015/11/18 10:26:00
Done.
|
| + 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; |