mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Make chrome://chrome-urls an alias for chrome://webui-hosts (fixes issue #2977)
This commit is contained in:
@ -76,6 +76,7 @@ const char* kAllowedWebUIHosts[] = {
|
|||||||
content::kChromeUIAppCacheInternalsHost,
|
content::kChromeUIAppCacheInternalsHost,
|
||||||
chrome::kChromeUIAccessibilityHost,
|
chrome::kChromeUIAccessibilityHost,
|
||||||
content::kChromeUIBlobInternalsHost,
|
content::kChromeUIBlobInternalsHost,
|
||||||
|
chrome::kChromeUIChromeURLsHost,
|
||||||
chrome::kChromeUICreditsHost,
|
chrome::kChromeUICreditsHost,
|
||||||
kChromeUIExtensionsSupportHost,
|
kChromeUIExtensionsSupportHost,
|
||||||
content::kChromeUIGpuHost,
|
content::kChromeUIGpuHost,
|
||||||
@ -120,6 +121,7 @@ const struct {
|
|||||||
const char* host;
|
const char* host;
|
||||||
ChromeHostId host_id;
|
ChromeHostId host_id;
|
||||||
} kAllowedCefHosts[] = {
|
} kAllowedCefHosts[] = {
|
||||||
|
{chrome::kChromeUIChromeURLsHost, CHROME_WEBUI_HOSTS},
|
||||||
{kChromeUIExtensionsSupportHost, CHROME_EXTENSIONS_SUPPORT},
|
{kChromeUIExtensionsSupportHost, CHROME_EXTENSIONS_SUPPORT},
|
||||||
{kChromeUILicenseHost, CHROME_LICENSE},
|
{kChromeUILicenseHost, CHROME_LICENSE},
|
||||||
{chrome::kChromeUIVersionHost, CHROME_VERSION},
|
{chrome::kChromeUIVersionHost, CHROME_VERSION},
|
||||||
@ -397,8 +399,8 @@ bool OnVersionUI(Profile* profile,
|
|||||||
|
|
||||||
bool OnWebUIHostsUI(std::string* mime_type, std::string* output) {
|
bool OnWebUIHostsUI(std::string* mime_type, std::string* output) {
|
||||||
std::string html =
|
std::string html =
|
||||||
"<html>\n<head><title>WebUI Hosts</title></head>\n"
|
"<html>\n<head><title>Chrome URLs</title></head>\n"
|
||||||
"<body bgcolor=\"white\"><h3>WebUI Hosts</h3>\n<ul>\n";
|
"<body bgcolor=\"white\"><h3>List of Chrome URLs</h3>\n<ul>\n";
|
||||||
|
|
||||||
std::vector<std::string> list;
|
std::vector<std::string> list;
|
||||||
GetAllowedHosts(&list);
|
GetAllowedHosts(&list);
|
||||||
|
Reference in New Issue
Block a user