1
0
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:
Jonathan Prusik
2025-12-01 15:51:40 -05:00
parent 049acf1e12
commit f82160fb61

View File

@@ -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", {