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

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

Issue 2378773003: Add version control URI schemes to registerProtocolHandler safelist
Patch Set: Created 4 years, 3 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 | « third_party/WebKit/LayoutTests/http/tests/navigatorcontentutils/unregister-protocol-handler.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
diff --git a/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp b/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
index 3032706e50acba470361002a3c48216437978097..dcb0657320f41d399a2b17c85b31798049504b76 100644
--- a/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
+++ b/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
@@ -44,10 +44,34 @@ static void initCustomSchemeHandlerWhitelist()
schemeWhitelist = new HashSet<String>;
static const char* const schemes[] = {
"bitcoin",
+ "bzr"
+ "bzr+ftp"
+ "bzr+http"
+ "bzr+https"
+ "bzr+lp"
+ "bzr+sftp"
+ "bzr+ssh"
+ "cvs"
+ "cvs+ext"
+ "cvs+pserver"
+ "cvs+ssh"
+ "darcs+http"
+ "darcs+https"
+ "darcs+ssh"
"geo",
+ "git"
+ "git+http"
+ "git+https"
+ "git+ssh"
+ "hg"
+ "hg+http"
+ "hg+https"
+ "hg+ssh"
+ "hg+static-http"
"im",
"irc",
"ircs",
+ "lp"
"magnet",
"mailto",
"mms",
@@ -58,6 +82,10 @@ static void initCustomSchemeHandlerWhitelist()
"sms",
"smsto",
"ssh",
+ "svn"
+ "svn+http"
+ "svn+https"
+ "svn+ssh"
"tel",
"urn",
"webcal",
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/navigatorcontentutils/unregister-protocol-handler.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698