Enable Trusted Types #11845
Labels
OS/Android
Fixes related to Android browser functionality
OS/Desktop
priority/P3
The next thing for us to work on. It'll ride the trains.
sec-high
security
See https://gist.github.com/shhnjk/a44b13dfdbd83c79bd1e2c1b08508f9d for context.
We should enable Trusted Types by default in WebUI pages and exclude any pages that don't support it yet with
DisableTrustedTypesCSP
(https://source.chromium.org/chromium/chromium/src/+/master:content/browser/webui/web_ui_data_source_impl.cc;l=203;drc=2e4a49088b18eee415d8c530dc9b49fd56b33d0c). This will give us parity with Chrome 87: https://bugs.chromium.org/p/chromium/issues/detail?id=41905Upstream pages that don't yet support trusted types:
Note that as of #11642,
src/brave
no longer contains any direct calls to innerHTML or dangerouslySetInnerHTMLThe text was updated successfully, but these errors were encountered: