mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
[PM-3704] Autofil Command Should Not Attempt to Fill If Fields Are Not Found in Page Details (#6148)
This commit is contained in:
@@ -280,6 +280,10 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
* @returns The TOTP code of the successfully autofilled login, if any
|
* @returns The TOTP code of the successfully autofilled login, if any
|
||||||
*/
|
*/
|
||||||
async doAutoFillActiveTab(pageDetails: PageDetail[], fromCommand: boolean): Promise<string> {
|
async doAutoFillActiveTab(pageDetails: PageDetail[], fromCommand: boolean): Promise<string> {
|
||||||
|
if (!pageDetails[0]?.details?.fields?.length) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const tab = await this.getActiveTab();
|
const tab = await this.getActiveTab();
|
||||||
if (!tab || !tab.url) {
|
if (!tab || !tab.url) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user