Revert "ported from custom branch of UXP: Spoof to Firefox 128 for WebExtensions (ae7c40d4)"

This reverts commit 0a26c24bb6.
This commit is contained in:
2026-04-30 10:25:34 +08:00
parent ddf51d3fa7
commit 2ec5548c91
2 changed files with 3 additions and 9 deletions
+1 -3
View File
@@ -94,9 +94,7 @@ extensions.registerSchemaAPI("runtime", "addon_parent", context => {
getBrowserInfo: function() {
const {name, vendor, version, appBuildID} = Services.appinfo;
// Override version for WebExtensions compatibility with modern extensions
// Report as Firefox 128.0 to extensions while maintaining actual UXP identity
const info = {name: "Firefox", vendor, version: "128.0", buildID: appBuildID};
const info = {name, vendor, version, buildID: appBuildID};
return Promise.resolve(info);
},
@@ -6987,15 +6987,11 @@ AddonInternal.prototype = {
let version;
if (app.id == Services.appinfo.ID) {
if (this.type == "webextension")
// For WebExtensions, don't use the GRE version
version = "128.0";
else
version = aAppVersion;
version = aAppVersion;
} else if (app.id == TOOLKIT_ID) {
if (this.type == "webextension")
// For WebExtensions, don't use the GRE version
version = "128.0";
version = aAppVersion;
else
version = aPlatformVersion;
}