From 466d089fc0606ea75c34d537e9c56e196fb3446d Mon Sep 17 00:00:00 2001 From: TogiFerretFerret Date: Sun, 8 Feb 2026 11:48:04 -0500 Subject: [PATCH] feat: Add zen identification info, b=closes #12198, p=#12295 * feat: add zen identification to extension runtime for zen-specific features * chore: add branding to nightly to assist with certain testing (e.g. browser identification) * test: assert zen info in runtime.getBrowserInfo * Revert "test: assert zen info in runtime.getBrowserInfo" This reverts commit 94cfeff29f59522f6d3f39b0783c8b2b87f61d1f as the tests fail even without this commit. * Discard changes to surfer.json * chore: remove platform from getBrowserInfo (as requested) --------- Co-authored-by: mr. m <91018726+mr-cheffy@users.noreply.github.com> --- src/toolkit/components/extensions/parent/ext-runtime-js.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/toolkit/components/extensions/parent/ext-runtime-js.patch b/src/toolkit/components/extensions/parent/ext-runtime-js.patch index 99f21302f..4fa34d2cb 100644 --- a/src/toolkit/components/extensions/parent/ext-runtime-js.patch +++ b/src/toolkit/components/extensions/parent/ext-runtime-js.patch @@ -1,5 +1,5 @@ diff --git a/toolkit/components/extensions/parent/ext-runtime.js b/toolkit/components/extensions/parent/ext-runtime.js -index 0d7a3e505b6bd30548c6dda1504dd343a517b083..54400def5e02e886765fab68c3854a6b3c24ef2b 100644 +index 0d7a3e505b6bd30548c6dda1504dd343a517b083..fb6c6b4ef3eae24995a02f708ec41afd31d812ef 100644 --- a/toolkit/components/extensions/parent/ext-runtime.js +++ b/toolkit/components/extensions/parent/ext-runtime.js @@ -333,7 +333,7 @@ this.runtime = class extends ExtensionAPIPersistent { @@ -7,7 +7,7 @@ index 0d7a3e505b6bd30548c6dda1504dd343a517b083..54400def5e02e886765fab68c3854a6b getBrowserInfo: function () { const { name, vendor, version, appBuildID } = Services.appinfo; - const info = { name, vendor, version, buildID: appBuildID }; -+ const info = { name: 'Firefox', vendor, version: AppConstants.ZEN_FIREFOX_VERSION, buildID: appBuildID }; ++ const info = { name: 'Firefox', vendor, version: AppConstants.ZEN_FIREFOX_VERSION, buildID: appBuildID, zen: {version: AppConstants.MOZ_APP_VERSION_DISPLAY} }; return Promise.resolve(info); },