diff options
Diffstat (limited to 'components/addons/src/XPIProvider.jsm')
-rw-r--r-- | components/addons/src/XPIProvider.jsm | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/components/addons/src/XPIProvider.jsm b/components/addons/src/XPIProvider.jsm index 7ef102751..e9e556f99 100644 --- a/components/addons/src/XPIProvider.jsm +++ b/components/addons/src/XPIProvider.jsm @@ -134,10 +134,6 @@ const RDFURI_INSTALL_MANIFEST_ROOT = "urn:mozilla:install-manifest"; const PREFIX_NS_EM = "http://www.mozilla.org/2004/em-rdf#"; const TOOLKIT_ID = "toolkit@mozilla.org"; -#ifdef MOZ_PHOENIX_EXTENSIONS -const FIREFOX_ID = "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}" -const FIREFOX_APPCOMPATVERSION = "56.9" -#endif // The value for this is in Makefile.in #expand const DB_SCHEMA = __MOZ_EXTENSIONS_DB_SCHEMA__; @@ -6368,27 +6364,11 @@ AddonInternal.prototype = { if (!aPlatformVersion) aPlatformVersion = Services.appinfo.greVersion; -#ifdef MOZ_PHOENIX_EXTENSIONS - this.native = false; -#endif - let version; if (app.id == Services.appinfo.ID) { version = aAppVersion; -#ifdef MOZ_PHOENIX_EXTENSIONS - this.native = true; - } - else if (app.id == FIREFOX_ID) { - version = FIREFOX_APPCOMPATVERSION; - if (this.type != "extension") - //Only allow -extensions- in Firefox compatibility mode - return false; -#endif } else if (app.id == TOOLKIT_ID) { -#ifdef MOZ_PHOENIX_EXTENSIONS - this.native = true; -#endif version = aPlatformVersion; } @@ -6411,11 +6391,7 @@ AddonInternal.prototype = { // Extremely old extensions should not be compatible by default. let minCompatVersion; -#ifdef MOZ_PHOENIX_EXTENSIONS - if (app.id == Services.appinfo.ID || app.id == FIREFOX_ID) -#else if (app.id == Services.appinfo.ID) -#endif minCompatVersion = XPIProvider.minCompatibleAppVersion; else if (app.id == TOOLKIT_ID) minCompatVersion = XPIProvider.minCompatiblePlatformVersion; @@ -6439,18 +6415,6 @@ AddonInternal.prototype = { if (targetApp.id == TOOLKIT_ID) 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; - } - } -#endif // Return toolkit ID if toolkit. return app; }, |