Last i checked, it was only used for stuff provided to the user themselves (so a bypass in dompurify would allow you to xss yourself but not others.). However that was a long time ago, so im not sure what the current state is.
https://github.com/wikimedia/VisualEditor/blob/master/src/ve...