1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-22 02:21:34 +01:00

[PM-5189] Fixing an issue where the inline menu might not close when switching between frames

This commit is contained in:
Cesar Gonzalez 2024-05-22 05:04:16 -05:00
parent ab45c70564
commit 0dfdad07e2
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF

View File

@ -440,7 +440,7 @@ export class OverlayBackground implements OverlayBackgroundInterface {
return;
}
if (this.isFieldCurrentlyFocused) {
if (sender.frameId === this.focusedFieldData?.frameId && this.isFieldCurrentlyFocused) {
return;
}
@ -984,6 +984,7 @@ export class OverlayBackground implements OverlayBackgroundInterface {
}
this.storeOverlayPort(port);
port.onDisconnect.addListener(this.handlePortOnDisconnect);
port.onMessage.addListener(this.handleOverlayElementPortMessage);
port.postMessage({
command: `initAutofillInlineMenu${isInlineMenuListPort ? "List" : "Button"}`,