1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

Split native messaging into renderer and background service. Encrypt messages and verify timestamp

This commit is contained in:
Hinton
2020-10-12 21:18:28 +02:00
parent 44cd222626
commit 51b749b1dc
7 changed files with 240 additions and 203 deletions

View File

@@ -52,6 +52,7 @@ import { UserService } from 'jslib/abstractions/user.service';
import { VaultTimeoutService } from 'jslib/abstractions/vaultTimeout.service';
import { ConstantsService } from 'jslib/services/constants.service';
import { NativeMessagingService } from '../services/nativeMessaging.service';
const BroadcasterSubscriptionId = 'AppComponent';
const IdleTimeout = 60000 * 10; // 10 minutes
@@ -97,7 +98,7 @@ export class AppComponent implements OnInit {
private searchService: SearchService, private notificationsService: NotificationsService,
private platformUtilsService: PlatformUtilsService, private systemService: SystemService,
private stateService: StateService, private eventService: EventService,
private policyService: PolicyService) { }
private policyService: PolicyService, private nativeMessagingService: NativeMessagingService) { }
ngOnInit() {
this.ngZone.runOutsideAngular(() => {