mirror of
https://github.com/zen-browser/desktop.git
synced 2026-05-28 07:45:09 +00:00
* 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 94cfeff29f 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>
14 lines
819 B
C++
14 lines
819 B
C++
diff --git a/toolkit/components/extensions/parent/ext-runtime.js b/toolkit/components/extensions/parent/ext-runtime.js
|
|
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 {
|
|
|
|
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, zen: {version: AppConstants.MOZ_APP_VERSION_DISPLAY} };
|
|
return Promise.resolve(info);
|
|
},
|
|
|