Bug 1543696 - Don't set extensions.legacy.enabled on beta in browser_ext_themes_experiment.js. r=kmag
authorTim Nguyen <ntim.bugs@gmail.com>
Tue, 16 Apr 2019 18:14:37 +0000
changeset 469760 bdd3825511f3
parent 469759 5519079b4dc0
child 469761 473513f68366
push id35882
push usercbrindusan@mozilla.com
push dateWed, 17 Apr 2019 15:54:01 +0000
treeherdermozilla-central@37185c0ae520 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmag
bugs1543696
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1543696 - Don't set extensions.legacy.enabled on beta in browser_ext_themes_experiment.js. r=kmag Differential Revision: https://phabricator.services.mozilla.com/D27153
toolkit/components/extensions/test/browser/browser_ext_themes_experiment.js
--- a/toolkit/components/extensions/test/browser/browser_ext_themes_experiment.js
+++ b/toolkit/components/extensions/test/browser/browser_ext_themes_experiment.js
@@ -1,16 +1,18 @@
 "use strict";
 
 // This test checks whether the theme experiments work
 
 add_task(async function setup() {
-  await SpecialPowers.pushPrefEnv({
-    set: [["extensions.legacy.enabled", true]],
-  });
+  if (AppConstants.MOZ_ALLOW_LEGACY_EXTENSIONS) {
+    await SpecialPowers.pushPrefEnv({
+      set: [["extensions.legacy.enabled", true]],
+    });
+  }
 });
 
 add_task(async function test_experiment_static_theme() {
   let extension = ExtensionTestUtils.loadExtension({
     manifest: {
       theme: {
         colors: {
           some_color_property: "#ff00ff",