mirror of
https://github.com/bitwarden/browser
synced 2026-02-06 19:53:59 +00:00
ignore events that do not originate from the user agent
This commit is contained in:
@@ -703,6 +703,11 @@ export class AutofillOverlayContentService implements AutofillOverlayContentServ
|
||||
* @param event - The keyup event.
|
||||
*/
|
||||
private handleFormFieldKeyupEvent = async (event: globalThis.KeyboardEvent) => {
|
||||
// If the event doesn't originatate from the user agent, it should be ignored
|
||||
if (!event.isTrusted) {
|
||||
return;
|
||||
}
|
||||
|
||||
const eventCode = event.code;
|
||||
if (eventCode === "Escape") {
|
||||
void this.sendExtensionMessage("closeAutofillInlineMenu", {
|
||||
|
||||
Reference in New Issue
Block a user