[PM-3704] Autofil Command Should Not Attempt to Fill If Fields Are Not Found in Page Details (#6148)
This commit is contained in:
parent
fcde0c6420
commit
9beed08b76
|
@ -280,6 +280,10 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||
* @returns The TOTP code of the successfully autofilled login, if any
|
||||
*/
|
||||
async doAutoFillActiveTab(pageDetails: PageDetail[], fromCommand: boolean): Promise<string> {
|
||||
if (!pageDetails[0]?.details?.fields?.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
const tab = await this.getActiveTab();
|
||||
if (!tab || !tab.url) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue