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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 1410093006: Exempt about: URLs from self-reference check for nested frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/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;

Powered by Google App Engine
This is Rietveld 408576698