-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[notifications] disallow arbitrary html in message content #7289
Conversation
this way we can be sure that no scripts can be executed. Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
@AlexTugarev please reference the relevant issue |
@AlexTugarev, how can I verify it? Thanks! |
Found it.
|
@kittaakos, a task definition with a label containing HTML should now be escaped in the confirmation message |
Thanks, @AlexTugarev. I even checked the video attached to the issue, no idea how to verify. Can you please write down the steps? Thanks! |
@kittaakos, I've added a repro to verify ☝️ |
Thank you! I have verified and compared the behavior with the Note: I see only an error when I do the same on the
|
Oh yeah, but that doesn't matter. Link handler are using the command service. I should have written an example with onClick handler. Thanks for verifying @kittaakos! 🙏 |
In alignment with vscode, this PR will change rendering of user notifications. HTML+JavaScript won't make into the rendered output 🎉 (Thanks to @luigigubello for reporting!)
I also checked that links with
javascript:
scheme are not translated to anchors for markdown.Closes #7283
Review checklist
Reminder for reviewers
hot to verify
add a task like this an use the
>Run Task
commandSee the HTML is escaped with this PR:
While it goes into the DOM on master: