-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add trusted modifier #6149
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
Add trusted modifier #6149
Conversation
added trusted modifier to dom.ts
added trusted to valid modifiers in Element.ts
execute trusted modifier in EventHandler.ts
extended to fix trusted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation looks great 👍🏻 👏
Add a test for this and everything should be good
Thanks - I hope i did it right. Never done before. |
Local test: ssr 3 passing (159ms) |
Fixes #6137
Adding a trusted modifier to make events not be dispatchable by console/sourcecode.
Useful to prevent injected code to automatically dispatch event for preventing botting