1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 19:23:52 +00:00

fix: only load vault timeout service in background (#11344)

This commit is contained in:
Andreas Coroiu
2024-10-03 13:11:50 +02:00
committed by GitHub
parent d3d1a55972
commit 29db451808

View File

@@ -283,7 +283,7 @@ export default class MainBackground {
folderService: InternalFolderServiceAbstraction; folderService: InternalFolderServiceAbstraction;
userDecryptionOptionsService: InternalUserDecryptionOptionsServiceAbstraction; userDecryptionOptionsService: InternalUserDecryptionOptionsServiceAbstraction;
collectionService: CollectionServiceAbstraction; collectionService: CollectionServiceAbstraction;
vaultTimeoutService: VaultTimeoutService; vaultTimeoutService?: VaultTimeoutService;
vaultTimeoutSettingsService: VaultTimeoutSettingsServiceAbstraction; vaultTimeoutSettingsService: VaultTimeoutSettingsServiceAbstraction;
passwordGenerationService: PasswordGenerationServiceAbstraction; passwordGenerationService: PasswordGenerationServiceAbstraction;
syncService: SyncService; syncService: SyncService;
@@ -842,24 +842,26 @@ export default class MainBackground {
this.vaultSettingsService = new VaultSettingsService(this.stateProvider); this.vaultSettingsService = new VaultSettingsService(this.stateProvider);
this.vaultTimeoutService = new VaultTimeoutService( if (!this.popupOnlyContext) {
this.accountService, this.vaultTimeoutService = new VaultTimeoutService(
this.masterPasswordService, this.accountService,
this.cipherService, this.masterPasswordService,
this.folderService, this.cipherService,
this.collectionService, this.folderService,
this.platformUtilsService, this.collectionService,
this.messagingService, this.platformUtilsService,
this.searchService, this.messagingService,
this.stateService, this.searchService,
this.authService, this.stateService,
this.vaultTimeoutSettingsService, this.authService,
this.stateEventRunnerService, this.vaultTimeoutSettingsService,
this.taskSchedulerService, this.stateEventRunnerService,
this.logService, this.taskSchedulerService,
lockedCallback, this.logService,
logoutCallback, lockedCallback,
); logoutCallback,
);
}
this.containerService = new ContainerService(this.cryptoService, this.encryptService); this.containerService = new ContainerService(this.cryptoService, this.encryptService);
this.sendStateProvider = new SendStateProvider(this.stateProvider); this.sendStateProvider = new SendStateProvider(this.stateProvider);