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

Unified Diff: content/public/common/url_utils.h

Issue 2644133002: Do not sanitize about:blank/#foo & about:blank?foo (Closed)
Patch Set: Created 3 years, 11 months 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: content/public/common/url_utils.h
diff --git a/content/public/common/url_utils.h b/content/public/common/url_utils.h
index 89ac3212c01896d10af86166ed8e9cc702f30628..71cb47becf0521e8733b4319e98747d566222d1f 100644
--- a/content/public/common/url_utils.h
+++ b/content/public/common/url_utils.h
@@ -18,6 +18,10 @@ CONTENT_EXPORT bool HasWebUIScheme(const GURL& url);
// Check whether we can do the saving page operation for the specified URL.
CONTENT_EXPORT bool IsSavableURL(const GURL& url);
+// Check whether the url is of the form about:blank, about:blank?foo or
+// about:blank/#foo.
+CONTENT_EXPORT bool IsAboutBlankURL(const GURL& url);
+
} // namespace content
#endif // CONTENT_PUBLIC_COMMON_URL_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698