From 6152d68b6aaf6ad263db4d204018499241592f45 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Thu, 2 Jul 2020 15:40:09 -0400 Subject: [PATCH] Make chrome://chrome-urls an alias for chrome://webui-hosts (fixes issue #2977) --- libcef/browser/net/chrome_scheme_handler.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libcef/browser/net/chrome_scheme_handler.cc b/libcef/browser/net/chrome_scheme_handler.cc index dbafb4687..d4956e43c 100644 --- a/libcef/browser/net/chrome_scheme_handler.cc +++ b/libcef/browser/net/chrome_scheme_handler.cc @@ -76,6 +76,7 @@ const char* kAllowedWebUIHosts[] = { content::kChromeUIAppCacheInternalsHost, chrome::kChromeUIAccessibilityHost, content::kChromeUIBlobInternalsHost, + chrome::kChromeUIChromeURLsHost, chrome::kChromeUICreditsHost, kChromeUIExtensionsSupportHost, content::kChromeUIGpuHost, @@ -120,6 +121,7 @@ const struct { const char* host; ChromeHostId host_id; } kAllowedCefHosts[] = { + {chrome::kChromeUIChromeURLsHost, CHROME_WEBUI_HOSTS}, {kChromeUIExtensionsSupportHost, CHROME_EXTENSIONS_SUPPORT}, {kChromeUILicenseHost, CHROME_LICENSE}, {chrome::kChromeUIVersionHost, CHROME_VERSION}, @@ -397,8 +399,8 @@ bool OnVersionUI(Profile* profile, bool OnWebUIHostsUI(std::string* mime_type, std::string* output) { std::string html = - "\nWebUI Hosts\n" - "

WebUI Hosts

\n