summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-03-19 06:35:47 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-27 11:57:14 +0200
commitb089b365d6b55948be49c7dbb5a11e9a6872d6a0 (patch)
tree632bf98a20a78dd73831bc69107e34f7c7ab2e01
parent0c150945dcc9845ae6cc5c4f549875811debbc63 (diff)
downloaduxp-b089b365d6b55948be49c7dbb5a11e9a6872d6a0.tar.gz
Revert "Issue #1446 - Only match extension add-on types for target applications."
This reverts commit 4889e6dbbd2e13e778e7a244e7834ffc881e7a80.
-rw-r--r--toolkit/mozapps/extensions/internal/XPIProvider.jsm15
1 files changed, 6 insertions, 9 deletions
diff --git a/toolkit/mozapps/extensions/internal/XPIProvider.jsm b/toolkit/mozapps/extensions/internal/XPIProvider.jsm
index d12e1de59f..2f298a9349 100644
--- a/toolkit/mozapps/extensions/internal/XPIProvider.jsm
+++ b/toolkit/mozapps/extensions/internal/XPIProvider.jsm
@@ -6528,15 +6528,12 @@ AddonInternal.prototype = {
app = targetApp;
}
#ifdef MOZ_PHOENIX_EXTENSIONS
- // Special case: check for Firefox TargetApps. this has to be done AFTER
- // the initial check to make sure appinfo.ID is preferred, even if
- // Firefox is listed before it in the install manifest.
- // Only do this for extensions. Other types should not be allowed.
- if (this.type == "extension") {
- for (let targetApp of this.targetApplications) {
- if (targetApp.id == FIREFOX_ID) //Firefox GUID
- return targetApp;
- }
+ //Special case: check for Firefox TargetApps. this has to be done AFTER
+ //the initial check to make sure appinfo.ID is preferred, even if
+ //Firefox is listed before it in the install manifest.
+ for (let targetApp of this.targetApplications) {
+ if (targetApp.id == FIREFOX_ID) //Firefox GUID
+ return targetApp;
}
#endif
// Return toolkit ID if toolkit.