Added missing feature flag for setting autofill policy on load (#10467)
* Added missing feature flag * Fixed comment * reverted change * moved feature flag check higher up
This commit is contained in:
parent
d1c3ec4a76
commit
a64a676ebd
|
@ -33,6 +33,7 @@ export default class RuntimeBackground {
|
||||||
private pageDetailsToAutoFill: any[] = [];
|
private pageDetailsToAutoFill: any[] = [];
|
||||||
private onInstalledReason: string = null;
|
private onInstalledReason: string = null;
|
||||||
private lockedVaultPendingNotifications: LockedVaultPendingNotificationsData[] = [];
|
private lockedVaultPendingNotifications: LockedVaultPendingNotificationsData[] = [];
|
||||||
|
private extensionRefreshIsActive: boolean = false;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private main: MainBackground,
|
private main: MainBackground,
|
||||||
|
@ -89,6 +90,10 @@ export default class RuntimeBackground {
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.extensionRefreshIsActive = await this.configService.getFeatureFlag(
|
||||||
|
FeatureFlag.ExtensionRefresh,
|
||||||
|
);
|
||||||
|
|
||||||
this.messageListener.allMessages$
|
this.messageListener.allMessages$
|
||||||
.pipe(
|
.pipe(
|
||||||
mergeMap(async (message: any) => {
|
mergeMap(async (message: any) => {
|
||||||
|
@ -228,7 +233,10 @@ export default class RuntimeBackground {
|
||||||
// `getAllDecryptedForUrl` and is anticipated to be refactored
|
// `getAllDecryptedForUrl` and is anticipated to be refactored
|
||||||
await this.main.refreshBadge();
|
await this.main.refreshBadge();
|
||||||
await this.main.refreshMenu(false);
|
await this.main.refreshMenu(false);
|
||||||
await this.autofillService.setAutoFillOnPageLoadOrgPolicy();
|
|
||||||
|
if (this.extensionRefreshIsActive) {
|
||||||
|
await this.autofillService.setAutoFillOnPageLoadOrgPolicy();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "addToLockedVaultPendingNotifications":
|
case "addToLockedVaultPendingNotifications":
|
||||||
|
@ -248,7 +256,10 @@ export default class RuntimeBackground {
|
||||||
}, 2000);
|
}, 2000);
|
||||||
await this.configService.ensureConfigFetched();
|
await this.configService.ensureConfigFetched();
|
||||||
await this.main.updateOverlayCiphers();
|
await this.main.updateOverlayCiphers();
|
||||||
await this.autofillService.setAutoFillOnPageLoadOrgPolicy();
|
|
||||||
|
if (this.extensionRefreshIsActive) {
|
||||||
|
await this.autofillService.setAutoFillOnPageLoadOrgPolicy();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "openPopup":
|
case "openPopup":
|
||||||
|
|
Loading…
Reference in New Issue