Add support for the chrome-untrusted scheme (see issue #3047)

Lack of this functionality was causing print preview to fail with
PdfUnseasoned enabled.
This commit is contained in:
Marshall Greenblatt
2022-02-16 16:24:41 -05:00
parent f01b1bc66c
commit a5c0963deb
4 changed files with 8 additions and 2 deletions

View File

@ -530,8 +530,10 @@ class CefWebUIControllerFactory : public content::WebUIControllerFactory {
// Returns true if WebUI is allowed to handle the specified |url|.
static bool AllowWebUIForURL(const GURL& url) {
if (!url.SchemeIs(content::kChromeUIScheme))
if (!url.SchemeIs(content::kChromeUIScheme) &&
!url.SchemeIs(content::kChromeUIUntrustedScheme)) {
return false;
}
if (IsAllowedWebUIHost(url.host()))
return true;