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:
@@ -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.");
|
||||
|
||||
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user