summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-07-22 04:56:56 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-07-22 04:56:56 -0400
commit42935554b838a4e0fc766eae12a468934f47cf5d (patch)
tree2260bb78db936dea5a2ea65eeefa7b2b98ab9847 /toolkit
parentd18cd5b5179d5e44b4f20ee60f938260d4a7ac54 (diff)
downloaduxp-42935554b838a4e0fc766eae12a468934f47cf5d.tar.gz
Issue mcp-graveyard/UXP#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!
Diffstat (limited to 'toolkit')
-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 d12e1de59f..58d412d9c6 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.