1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-08 20:50:28 +00:00

Initial CXP extension draft

This commit is contained in:
Anders Åberg
2025-05-14 08:56:35 +02:00
parent 5fb46df341
commit 7a47ed987a

View File

@@ -288,6 +288,7 @@ import { BrowserStorageServiceProvider } from "../platform/storage/browser-stora
import { OffscreenStorageService } from "../platform/storage/offscreen-storage.service";
import { SyncServiceListener } from "../platform/sync/sync-service.listener";
import { fromChromeRuntimeMessaging } from "../platform/utils/from-chrome-runtime-messaging";
import { CXPBrowserService } from "../tools/cxp/CXPBrowserService";
import { VaultFilterService } from "../vault/services/vault-filter.service";
import CommandsBackground from "./commands.background";
@@ -431,6 +432,7 @@ export default class MainBackground {
private nativeMessagingBackground: NativeMessagingBackground;
private popupViewCacheBackgroundService: PopupViewCacheBackgroundService;
private cxpService: CXPBrowserService;
constructor() {
// Services
@@ -1334,6 +1336,8 @@ export default class MainBackground {
this.authService,
this.logService,
);
this.cxpService = new CXPBrowserService();
}
async bootstrap() {
@@ -1384,6 +1388,7 @@ export default class MainBackground {
this.webRequestBackground?.startListening();
this.syncServiceListener?.listener$().subscribe();
await this.autoSubmitLoginBackground.init();
this.cxpService.init();
if (
BrowserApi.isManifestVersion(2) &&