summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-07-22 04:56:56 -0400
committerMoonchild <moonchild@palemoon.org>2020-07-23 23:17:09 +0000
commitb9b9d5bfb9fc36b6cccb06e730674165872ad852 (patch)
tree8dee9ea7c83c12ff925dd1a5741e6f474377b079
parentb92abc83c28b8174aaa5af196a9e1f885a9e6e3d (diff)
downloadUXP-b9b9d5bfb9fc36b6cccb06e730674165872ad852.tar
UXP-b9b9d5bfb9fc36b6cccb06e730674165872ad852.tar.gz
UXP-b9b9d5bfb9fc36b6cccb06e730674165872ad852.tar.lz
UXP-b9b9d5bfb9fc36b6cccb06e730674165872ad852.tar.xz
UXP-b9b9d5bfb9fc36b6cccb06e730674165872ad852.zip
Issue #1612 - Add-ons targeting Toolkit's ID (and not Firefox's) should be considered "native" by the Add-ons Manager when using the Dual-GUID system
A version bump triggering add-on compatibility check will re-evaluate the "native" status (among other things) so no extra or special work is required to fix erroneous warnings. tl;dr instafix!
-rw-r--r--toolkit/mozapps/extensions/internal/XPIProvider.jsm8
1 files changed, 6 insertions, 2 deletions
diff --git a/toolkit/mozapps/extensions/internal/XPIProvider.jsm b/toolkit/mozapps/extensions/internal/XPIProvider.jsm
index d12e1de59..58d412d9c 100644
--- a/toolkit/mozapps/extensions/internal/XPIProvider.jsm
+++ b/toolkit/mozapps/extensions/internal/XPIProvider.jsm
@@ -6477,8 +6477,12 @@ AddonInternal.prototype = {
return false;
#endif
}
- else if (app.id == TOOLKIT_ID)
- version = aPlatformVersion
+ else if (app.id == TOOLKIT_ID) {
+#ifdef MOZ_PHOENIX_EXTENSIONS
+ this.native = true;
+#endif
+ version = aPlatformVersion;
+ }
// Only extensions and dictionaries can be compatible by default; themes
// and language packs always use strict compatibility checking.