Bug 1359203 Part 2 Add build-time constant for allowing legacy extensions draft
authorAndrew Swan <aswan@mozilla.com>
Fri, 12 May 2017 21:28:14 -0700
changeset 581372 510bb3d21711c04700b250e484b616a2a1d552ec
parent 581371 a589b98517d5fc6fe1704f752a7eb2984d18b3ac
child 581373 6351a33dae65975748ddc62dbfbc6cd22218bfca
push id59850
push useraswan@mozilla.com
push dateFri, 19 May 2017 19:08:41 +0000
bugs1359203
milestone55.0a1
Bug 1359203 Part 2 Add build-time constant for allowing legacy extensions MozReview-Commit-ID: GhluEfupIrL
toolkit/modules/AppConstants.jsm
toolkit/moz.configure
--- a/toolkit/modules/AppConstants.jsm
+++ b/toolkit/modules/AppConstants.jsm
@@ -255,16 +255,23 @@ this.AppConstants = Object.freeze({
 
   MOZ_REQUIRE_SIGNING:
 #ifdef MOZ_REQUIRE_SIGNING
   true,
 #else
   false,
 #endif
 
+  MOZ_ALLOW_LEGACY_EXTENSIONS:
+#ifdef MOZ_ALLOW_LEGACY_EXTENSIONS
+  true,
+#else
+  false,
+#endif
+
   INSTALL_COMPACT_THEMES:
 #ifdef INSTALL_COMPACT_THEMES
   true,
 #else
   false,
 #endif
 
   MENUBAR_CAN_AUTOHIDE:
--- a/toolkit/moz.configure
+++ b/toolkit/moz.configure
@@ -533,16 +533,20 @@ project_flag('MOZ_SERVICES_HEALTHREPORT'
 
 project_flag('MOZ_SERVICES_SYNC',
              help='Build Sync Services if required')
 
 project_flag('MOZ_ANDROID_HISTORY',
              help='Enable Android History instead of Places',
              set_as_define=True)
 
+project_flag('MOZ_ALLOW_LEGACY_EXTENSIONS',
+             help='Allow legacy browser extensions',
+             default=True, set_as_define=True)
+
 option(env='MOZ_PHOTON_ANIMATIONS',
        help='Enable Photon UI animations',
        default=is_nightly)
 
 @depends('MOZ_PHOTON_ANIMATIONS')
 def photon_animations(value):
     if value:
         return bool(value)