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

Unified Diff: Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp

Issue 18234004: Add new schemes to content utils (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add a trailing Created 7 years, 6 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
« no previous file with comments | « LayoutTests/fast/dom/unregister-protocol-handler-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
diff --git a/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp b/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
index d65610057bb0d9f3d4b43b24df6c5f903f15bc76..f90f07c7948593017a51986a8f1abe211f28e6bf 100644
--- a/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
+++ b/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
@@ -45,16 +45,21 @@ static void initProtocolHandlerWhitelist()
protocolWhitelist = new HashSet<String>;
static const char* protocols[] = {
"bitcoin",
+ "geo",
"irc",
"mailto",
+ "magnet",
"mms",
"news",
"nntp",
+ "sip",
"sms",
"smsto",
+ "ssh",
"tel",
"urn",
"webcal",
+ "xmpp",
};
for (size_t i = 0; i < WTF_ARRAY_LENGTH(protocols); ++i)
protocolWhitelist->add(protocols[i]);
« no previous file with comments | « LayoutTests/fast/dom/unregister-protocol-handler-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698