mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 15:02:46 +00:00
Revert "ported from custom branch of UXP: Spoof to Firefox 128 for WebExtensions (ae7c40d4)"
This reverts commit 0a26c24bb6.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user