1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-08 19:43:45 +00:00

[PM-17121/17204] Fix fingerprint dialogs and disabled active biometric lock component (#12928)

* Fix biometrics unlock window being empty

* Add trust on sensitive action

* Add dialog for outdated desktop app and fix spelling

* Use updated fingerprint method

* Refactor connected app trust

* Move connected apps to ephemeral value store and show error on outdated browser

* Move trust logic to only occur when fingerprint setting is enabled

* Add more tests

* Simplify code

* Update ephemeral value list call to "listEphemeralValueKeys"

* Fix trust being ignored
This commit is contained in:
Bernd Schoolmann
2025-01-21 21:26:34 +01:00
committed by GitHub
parent 5fbe7abda5
commit ef20ca83b6
10 changed files with 499 additions and 68 deletions

View File

@@ -123,6 +123,7 @@ const ephemeralStore = {
getEphemeralValue: (key: string): Promise<string> => ipcRenderer.invoke("getEphemeralValue", key),
removeEphemeralValue: (key: string): Promise<void> =>
ipcRenderer.invoke("deleteEphemeralValue", key),
listEphemeralValueKeys: (): Promise<string[]> => ipcRenderer.invoke("listEphemeralValueKeys"),
};
const localhostCallbackService = {

View File

@@ -17,5 +17,8 @@ export class EphemeralValueStorageService {
ipcMain.handle("deleteEphemeralValue", async (event, key: string) => {
this.ephemeralValues.delete(key);
});
ipcMain.handle("listEphemeralValueKeys", async (event) => {
return Array.from(this.ephemeralValues.keys());
});
}
}