mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 19:47:32 +09:00
[AllAM] Revert Bug 956990 - PREF_CHECKCOMAT_THEMEOVERRIDE
This commit is contained in:
parent
0b79a22f0e
commit
c5f22288ca
3 changed files with 2 additions and 38 deletions
|
|
@ -96,8 +96,6 @@ const PREF_INTERPOSITION_ENABLED = "extensions.interposition.enabled";
|
|||
const PREF_EM_MIN_COMPAT_APP_VERSION = "extensions.minCompatibleAppVersion";
|
||||
const PREF_EM_MIN_COMPAT_PLATFORM_VERSION = "extensions.minCompatiblePlatformVersion";
|
||||
|
||||
const PREF_CHECKCOMAT_THEMEOVERRIDE = "extensions.checkCompatibility.temporaryThemeOverride_minAppVersion";
|
||||
|
||||
const URI_EXTENSION_SELECT_DIALOG = "chrome://mozapps/content/extensions/selectAddons.xul";
|
||||
const URI_EXTENSION_UPDATE_DIALOG = "chrome://mozapps/content/extensions/update.xul";
|
||||
const URI_EXTENSION_STRINGS = "chrome://mozapps/locale/extensions/extensions.properties";
|
||||
|
|
@ -662,22 +660,8 @@ function isUsableAddon(aAddon) {
|
|||
return false;
|
||||
}
|
||||
else {
|
||||
let app = aAddon.matchingTargetApplication;
|
||||
if (!app)
|
||||
if (!aAddon.matchingTargetApplication)
|
||||
return false;
|
||||
|
||||
// XXX Temporary solution to let applications opt-in to make themes safer
|
||||
// following significant UI changes even if checkCompatibility=false has
|
||||
// been set, until we get bug 962001.
|
||||
if (aAddon.type == "theme" && app.id == Services.appinfo.ID) {
|
||||
try {
|
||||
let minCompatVersion = Services.prefs.getCharPref(PREF_CHECKCOMAT_THEMEOVERRIDE);
|
||||
if (minCompatVersion &&
|
||||
Services.vc.compare(minCompatVersion, app.maxVersion) > 0) {
|
||||
return false;
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue