1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[PM-19215] Fix Firefox extension biometric unlock autoprompt (#14254)

* Remove restriction from account security component

* Add the ability to manage pop-out to the LockComponentService

* Have the Firefox extension pop-out on biometric auto-prompt unlock
This commit is contained in:
Thomas Avery
2025-04-21 14:08:09 -05:00
committed by GitHub
parent 143473927e
commit 3a8045d7d0
11 changed files with 166 additions and 26 deletions

View File

@@ -52,6 +52,22 @@ describe("WebLockComponentService", () => {
});
});
describe("popOutBrowserExtension", () => {
it("throws platform not supported error", () => {
expect(() => service.popOutBrowserExtension()).toThrow(
"Method not supported on this platform.",
);
});
});
describe("closeBrowserExtensionPopout", () => {
it("throws platform not supported error", () => {
expect(() => service.closeBrowserExtensionPopout()).toThrow(
"Method not supported on this platform.",
);
});
});
describe("isWindowVisible", () => {
it("throws an error", async () => {
await expect(service.isWindowVisible()).rejects.toThrow("Method not implemented.");

View File

@@ -24,6 +24,14 @@ export class WebLockComponentService implements LockComponentService {
return null;
}
popOutBrowserExtension(): Promise<void> {
throw new Error("Method not supported on this platform.");
}
closeBrowserExtensionPopout(): void {
throw new Error("Method not supported on this platform.");
}
async isWindowVisible(): Promise<boolean> {
throw new Error("Method not implemented.");
}