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

Have sendExtensionMessage call be non-blocking

This commit is contained in:
Jeffrey Holland
2025-09-08 12:59:42 +02:00
parent 0040c857ec
commit 955adc123a

View File

@@ -917,11 +917,13 @@ export class AutofillOverlayContentService implements AutofillOverlayContentServ
return;
}
// Collect page details in the background without blocking autofill overlay
if (this.pageDetailsUpdateRequired) {
await this.sendExtensionMessage("bgCollectPageDetails", {
void this.sendExtensionMessage("bgCollectPageDetails", {
sender: "autofillOverlayContentService",
}).then(() => {
this.pageDetailsUpdateRequired = false;
});
this.pageDetailsUpdateRequired = false;
}
if (elementIsSelectElement(formFieldElement)) {