Bug 1543696 - Set extensions.legacy.enabled to false on beta in browser_ext_themes_experiment.js. r=kmag draft
authorTim Nguyen <ntim.bugs@gmail.com>
Fri, 19 Apr 2019 14:18:27 +0300
changeset 1961623 008019ed9eb7a436b65e04bba91a5d42c35fd11b
parent 1961622 6a9f3757e93236f77696abdab4bf79bb6afe90af
child 1961624 a9f82c48257accc4fa2e97266ee0809c614a1cf5
push id351553
push usernerli@mozilla.com
push dateFri, 19 Apr 2019 12:34:06 +0000
treeherdertry@dde31a9413ad [default view] [failures only]
reviewerskmag
bugs1543696
milestone68.0a1
Bug 1543696 - Set extensions.legacy.enabled to false on beta in browser_ext_themes_experiment.js. r=kmag Reviewers: kmag Bug #: 1543696 Differential Revision: https://phabricator.services.mozilla.com/D28187
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,18 +1,16 @@
 "use strict";
 
 // This test checks whether the theme experiments work
 
 add_task(async function setup() {
-  if (AppConstants.MOZ_ALLOW_LEGACY_EXTENSIONS) {
-    await SpecialPowers.pushPrefEnv({
-      set: [["extensions.legacy.enabled", true]],
-    });
-  }
+  await SpecialPowers.pushPrefEnv({
+    set: [["extensions.legacy.enabled", AppConstants.MOZ_ALLOW_LEGACY_EXTENSIONS]],
+  });
 });
 
 add_task(async function test_experiment_static_theme() {
   let extension = ExtensionTestUtils.loadExtension({
     manifest: {
       theme: {
         colors: {
           some_color_property: "#ff00ff",