chore: fix TrustedTypes policy in chrome://accessibility
(#38179)
chore: fix TrustedTypes policy in chrome://accessibility
This commit is contained in:
parent
13be6dc8b4
commit
a6c9aefb4a
1 changed files with 4 additions and 0 deletions
|
@ -321,6 +321,10 @@ ElectronAccessibilityUI::ElectronAccessibilityUI(content::WebUI* web_ui)
|
|||
base::BindRepeating(&HandleAccessibilityRequestCallback,
|
||||
web_ui->GetWebContents()->GetBrowserContext()));
|
||||
|
||||
html_source->OverrideContentSecurityPolicy(
|
||||
network::mojom::CSPDirectiveName::TrustedTypes,
|
||||
"trusted-types parse-html-subset sanitize-inner-html;");
|
||||
|
||||
web_ui->AddMessageHandler(
|
||||
std::make_unique<ElectronAccessibilityUIMessageHandler>());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue