1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-17 18:09:17 +00:00

[PM-5189] Throttling how often sub frame calculations can be triggered from the focus in listener

This commit is contained in:
Cesar Gonzalez
2024-06-20 14:06:20 -05:00
parent 5e875b29b8
commit 562f81cabd
2 changed files with 77 additions and 20 deletions

View File

@@ -54,11 +54,17 @@ export const SEPARATOR_ID = "separator";
export const NOTIFICATION_BAR_LIFESPAN_MS = 150000; // 150 seconds
export const AUTOFILL_OVERLAY_ON_SCROLL = "autofill-overlay-scroll-event";
export const AUTOFILL_OVERLAY_ON_RESIZE = "autofill-overlay-resize-event";
export const AUTOFILL_OVERLAY_SUB_FRAME_ON_FOCUS = "autofill-overlay-sub-frame-focus-event";
export const AUTOFILL_OVERLAY_SUB_FRAME_ON_BLUR = "autofill-overlay-sub-frame-blur-event";
export const AUTOFILL_OVERLAY_SUB_FRAME_ON_MOUSE_ENTER =
"autofill-overlay-sub-frame-on-mouse-enter-event";
export const AUTOFILL_OVERLAY_SUB_FRAME_ON_MOUSE_LEAVE =
"autofill-overlay-sub-frame-on-mouse-leave-event";
export const AutofillOverlayVisibility = {
Off: 0,
OnButtonClick: 1,
OnFieldFocus: 2,
} as const;
export const AUTOFILL_OVERLAY_ON_SCROLL = "autofill-overlay-scroll-event";
export const AUTOFILL_OVERLAY_ON_RESIZE = "autofill-overlay-resize-event";