Remove extension version in bridge:getInfo message (due to Mozilla data consent policy)

This commit is contained in:
hensm
2026-03-07 12:33:37 +00:00
parent 75f0a1bb1c
commit f8c480c1d3
3 changed files with 13 additions and 15 deletions

View File

@@ -24,15 +24,14 @@ import type { WebSocket } from "ws";
*/ */
type MessageDefinitions = { type MessageDefinitions = {
/** /**
* First message sent by the extension to the bridge. * First message sent by the extension to the bridge.Responds directly with
* Includes extension version string. Responds directly with version * version string of the bridge to compare.
* string of the bridge to compare.
* *
* Still uses `:/` message separator for compat talking to older * Still uses `:/` message separator for compat talking to older bridge
* bridge versions. * versions.
*/ */
"bridge:getInfo": string; "bridge:getInfo": undefined;
"bridge:/getInfo": string; "bridge:/getInfo": undefined;
/** /**
* Tells a bridge to begin service discovery (and whether to * Tells a bridge to begin service discovery (and whether to

View File

@@ -69,7 +69,7 @@ const getInfo = () =>
applicationVersion = await nativeMessaging.sendNativeMessage( applicationVersion = await nativeMessaging.sendNativeMessage(
applicationName, applicationName,
{ subject: "bridge:/getInfo", data: version } { subject: "bridge:/getInfo" }
); );
} catch (err) { } catch (err) {
if (err === 401) { if (err === 401) {

View File

@@ -127,15 +127,14 @@ type ExtensionMessageDefinitions = {
*/ */
type BridgeMessageDefinitions = { type BridgeMessageDefinitions = {
/** /**
* First message sent by the extension to the bridge. * First message sent by the extension to the bridge.Responds directly with
* Includes extension version string. Responds directly with version * version string of the bridge to compare.
* string of the bridge to compare.
* *
* Still uses `:/` message separator for compat talking to older * Still uses `:/` message separator for compat talking to older bridge
* bridge versions. * versions.
*/ */
"bridge:getInfo": string; "bridge:getInfo": undefined;
"bridge:/getInfo": string; "bridge:/getInfo": undefined;
/** /**
* Tells a bridge to begin service discovery (and whether to * Tells a bridge to begin service discovery (and whether to