vscode/src/vs
Matt Bierner 474d4951d8
Switch to dompurify for sanitizing markdown content (#131950)
* Switch to dompurify for sanitizing markdown content

Switches us from using `insane` to instead use `dompurify`, which seems to be better maintained and also has some nice features, such as built-in trusted types support

I've tried to port over our existing sanitizer settings as best as possible, but there's not always a 1:1 mapping between how insane works and how dompurify does. I'd like to get this change in early in the iteration to catch potential regressions

* Remove logging and renaming param

* Move dompurify to browser layer

* Fixing tests and how we check valid attributes

* Allow innerhtml in specific files

* Use isEqualNode instead of checking innerHTML directly

innerHTML can return different results on different browsers. Use `isEqualNode` instead

* Reapply fix for trusted types

* Enable ALLOW_UNKNOWN_PROTOCOLS

I beleive this is required since we allow links to commands and loading images over remote

* in -> of

* Fix check of protocol

* Enable two more safe tags
2021-09-03 12:17:02 -07:00
..
base Switch to dompurify for sanitizing markdown content (#131950) 2021-09-03 12:17:02 -07:00
code Switch to dompurify for sanitizing markdown content (#131950) 2021-09-03 12:17:02 -07:00
editor Add alert to AccessibilityService (#131947) 2021-09-01 09:09:21 -07:00
platform temp fix for #132238 2021-09-03 10:55:49 -07:00
workbench Switch to dompurify for sanitizing markdown content (#131950) 2021-09-03 12:17:02 -07:00
css.build.js
css.d.ts
css.js
loader.js fix some typo in comments, renaming few methods (#130470) 2021-08-11 17:57:48 -07:00
monaco.d.ts Added ariaContainerElement to IStandaloneEditorConstructionOptions 2021-08-29 16:38:30 +01:00
nls.build.js fix some typo in comments, renaming few methods (#130470) 2021-08-11 17:57:48 -07:00
nls.d.ts
nls.js
nls.mock.ts
vscode.d.ts fix https://github.com/microsoft/vscode/issues/132113 2021-09-03 10:50:45 +02:00
vscode.proposed.d.ts fix https://github.com/microsoft/vscode/issues/132113 2021-09-03 10:50:45 +02:00