mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
tracked last-launched ciphers for autofill
This commit is contained in:
@@ -232,6 +232,13 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
cipher = await this.cipherService.getNextCipherForUrl(tab.url);
|
||||
} else {
|
||||
cipher = await this.cipherService.getLastUsedForUrl(tab.url);
|
||||
const lastLaunchedCipher = await this.cipherService.getLastLaunchedForUrl(tab.url);
|
||||
if (lastLaunchedCipher && Date.now().valueOf() - lastLaunchedCipher.localData?.lastLaunched?.valueOf() < 30000) {
|
||||
cipher = lastLaunchedCipher;
|
||||
}
|
||||
else {
|
||||
cipher = await this.cipherService.getLastUsedForUrl(tab.url);
|
||||
}
|
||||
}
|
||||
|
||||
const autoFillResponse = await this.doAutoFill({
|
||||
|
||||
Reference in New Issue
Block a user