From 7a47ed987ab7539b5a405ec8a0cedc6acbcd20c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85berg?= Date: Wed, 14 May 2025 08:56:35 +0200 Subject: [PATCH] Initial CXP extension draft --- apps/browser/src/background/main.background.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/browser/src/background/main.background.ts b/apps/browser/src/background/main.background.ts index 85a9cd27c57..cda70a0f836 100644 --- a/apps/browser/src/background/main.background.ts +++ b/apps/browser/src/background/main.background.ts @@ -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) &&