Skip to content

Commit 8ffa53d

Browse files
Allow Firefox nightly extension in native messaging manifest
1 parent b366f37 commit 8ffa53d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/utils/nativeMessagingSetup.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ const { isFlatpakRuntime, isSnapRuntime, getHostHome, getSnapRealHome } =
1818
const FLATPAK_APP_ID = 'com.pears.pass'
1919
const FLATPAK_NATIVE_HOST_COMMAND = 'pearpass-native-host'
2020

21+
// pearpass-lib-constants only exports the production Firefox extension ID.
22+
// Allowlisting the nightly ID alongside lets a single build accept either
23+
// extension variant. Drop this once the constants package exposes both.
24+
const FIREFOX_NIGHTLY_EXTENSION_ID = 'pass-nightly@pears.com'
25+
2126
const NATIVE_BRIDGE_PROCESS_IDENTIFIER = 'pearpass-lib-native-messaging-bridge'
2227

2328
const promisify =
@@ -600,7 +605,7 @@ export const setupNativeMessaging = async ({
600605
description: 'PearPass Native Messaging Host',
601606
path: manifestExecPath,
602607
type: 'stdio',
603-
allowed_extensions: [FIREFOX_EXTENSION_ID]
608+
allowed_extensions: [FIREFOX_EXTENSION_ID, FIREFOX_NIGHTLY_EXTENSION_ID]
604609
}
605610

606611
const { browsers } = getNativeMessagingLocations()

0 commit comments

Comments
 (0)