diff options
Diffstat (limited to 'components/addons/src/AddonRepository.jsm')
-rw-r--r-- | components/addons/src/AddonRepository.jsm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/addons/src/AddonRepository.jsm b/components/addons/src/AddonRepository.jsm index 8432886b6..4569abdd1 100644 --- a/components/addons/src/AddonRepository.jsm +++ b/components/addons/src/AddonRepository.jsm @@ -64,6 +64,11 @@ const BLANK_DB = function() { } const TOOLKIT_ID = "toolkit@mozilla.org"; + +#ifdef MC_APP_ID +#expand const ALT_APP_ID = "__MC_APP_ID__"; +#endif + Cu.import("resource://gre/modules/Log.jsm"); const LOGGER_ID = "addons.repository"; @@ -1251,7 +1256,11 @@ this.AddonRepository = { let results = []; function isSameApplication(aAppNode) { +#ifdef MC_APP_ID + if (self._getTextContent(aAppNode) == ALT_APP_ID || self._getTextContent(aAppNode) == Services.appinfo.ID) { +#else if (self._getTextContent(aAppNode) == Services.appinfo.ID) { +#endif return true; } return false; |