mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 19:47:32 +09:00
Remove the hard blocker on unmodified jetpack extensions from TychoAM
Be sure to remove the now unused string from Pale Moon
This commit is contained in:
parent
801b7a4d47
commit
66e00ae185
3 changed files with 3 additions and 30 deletions
|
|
@ -635,9 +635,6 @@ function isUsableAddon(aAddon) {
|
|||
if (aAddon.type == "theme" && aAddon.internalName == XPIProvider.defaultSkin)
|
||||
return true;
|
||||
|
||||
if (aAddon.jetsdk)
|
||||
return false;
|
||||
|
||||
if (aAddon.blocklistState == Blocklist.STATE_BLOCKED)
|
||||
return false;
|
||||
|
||||
|
|
@ -1116,23 +1113,7 @@ function loadManifestFromZipReader(aZipReader) {
|
|||
} else {
|
||||
addon.hasBinaryComponents = false;
|
||||
}
|
||||
|
||||
// Set a boolean value whether the .xpi archive contains file related to old
|
||||
// Mozilla Add-on SDK or contains file related to PMkit (or new Mozilla SDK),
|
||||
// but extension is not directly targeting Pale Moon
|
||||
if (aZipReader.hasEntry("harness-options.json")) {
|
||||
addon.jetsdk = true;
|
||||
} else if (aZipReader.hasEntry("package.json")) {
|
||||
let app = addon.matchingTargetApplication;
|
||||
if (app && app.id == Services.appinfo.ID) {
|
||||
addon.jetsdk = false;
|
||||
} else {
|
||||
addon.jetsdk = true;
|
||||
}
|
||||
} else {
|
||||
addon.jetsdk = false;
|
||||
}
|
||||
|
||||
|
||||
addon.appDisabled = !isUsableAddon(addon);
|
||||
return addon;
|
||||
}
|
||||
|
|
@ -6731,7 +6712,7 @@ function AddonWrapper(aAddon) {
|
|||
"providesUpdatesSecurely", "blocklistState", "blocklistURL", "appDisabled",
|
||||
"softDisabled", "skinnable", "size", "foreignInstall", "hasBinaryComponents",
|
||||
"strictCompatibility", "compatibilityOverrides", "updateURL",
|
||||
"getDataDirectory", "multiprocessCompatible", "jetsdk", "native"].forEach(function(aProp) {
|
||||
"getDataDirectory", "multiprocessCompatible", "native"].forEach(function(aProp) {
|
||||
this.__defineGetter__(aProp, function AddonWrapper_propertyGetter() aAddon[aProp]);
|
||||
}, this);
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ const PROP_JSON_FIELDS = ["id", "syncGUID", "location", "version", "type",
|
|||
"skinnable", "size", "sourceURI", "releaseNotesURI",
|
||||
"softDisabled", "foreignInstall", "hasBinaryComponents",
|
||||
"strictCompatibility", "locales", "targetApplications",
|
||||
"targetPlatforms", "multiprocessCompatible", "jetsdk", "native"];
|
||||
"targetPlatforms", "multiprocessCompatible", "native"];
|
||||
|
||||
// Time to wait before async save of XPI JSON database, in milliseconds
|
||||
const ASYNC_SAVE_DELAY_MS = 20;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue