Bug 1394903 - Remove unacellerated-compositor-process-beta56 experiment, as it will not used. default tip
authorFelipe Gomes <felipc@gmail.com>
Mon, 18 Sep 2017 14:54:40 -0300
changeset 134 b130b38531dc
parent 133 a9f597a8c405
push id105
push userfelipc@gmail.com
push dateMon, 18 Sep 2017 17:55:12 +0000
bugs1394903
Bug 1394903 - Remove unacellerated-compositor-process-beta56 experiment, as it will not used.
experiments/unaccelerated-compositor-process-beta56/code/bootstrap.js
experiments/unaccelerated-compositor-process-beta56/code/install.rdf
experiments/unaccelerated-compositor-process-beta56/experiment.xpi
experiments/unaccelerated-compositor-process-beta56/manifest.json
deleted file mode 100644
--- a/experiments/unaccelerated-compositor-process-beta56/code/bootstrap.js
+++ /dev/null
@@ -1,103 +0,0 @@
-let {classes: Cc, interfaces: Ci, utils: Cu} = Components;
-
-Cu.import("resource:///modules/experiments/Experiments.jsm");
-Cu.import("resource://gre/modules/Task.jsm");
-Cu.import("resource://gre/modules/Preferences.jsm");
-
-var gStarted = false;
-
-const kSELF_ID = "unaccelerated-compositor-process-beta56@experiments.mozilla.org";
-const prefs = new Preferences();
-
-function startup() {
-  let branch = Experiments.instance().getExperimentBranch(kSELF_ID);
-  if (branch == null) {
-    checkForCompositor();
-  } else {
-    return;
-  }
-}
-
-function initializeExperiment() {
-  // Seems startup() function is launched twice after install, we're
-  // unsure why so far. We only want it to run once.
-  if (gStarted) {
-    return;
-  }
-  gStarted = true;
-
-  Task.spawn(function*() {
-    let branch = yield Experiments.instance().getExperimentBranch(kSELF_ID);
-    if (branch == null) {
-      let r = Math.random() * 2;
-      if (r < 1) {
-        branch = "control";
-      } else {
-        branch = "disabled";
-        prefs.set("layers.gpu-process.allow-software", false);
-      }
-      yield Experiments.instance().setExperimentBranch(kSELF_ID, branch);
-    } else {
-      // Exclude the user if they've manually changed the pref
-      let pref = prefs.get("layers.gpu-process.allow-software");
-      let isBranchValid = true;
-      if (branch == "disabled") {
-        isBranchValid = (pref == false);
-      } else if (branch == "control") {
-        isBranchValid = (pref == true);
-      } else if (branch == "disqualified") {
-        isBranchValid = (pref == true);
-      }
-      if (!isBranchValid) {
-        branch = "usermod";
-        yield Experiments.instance().setExperimentBranch(kSELF_ID, branch);
-      }
-    }
-  }).then(
-    function() {
-    },
-    function(e) {
-      Cu.reportError("Got error during bootstrap startup: " + e);
-    });
-}
-
-function shutdown(data, reason) {
-  if (reason == ADDON_DISABLE || reason == ADDON_UNINSTALL) {
-    // when the add-on is being disabled/uninstalled
-    prefs.reset("layers.gpu-process.allow-software");
-  }
-}
-
-function install() {
-  checkForCompositor();
-}
-
-function uninstall() {
-  prefs.reset("layers.gpu-process.allow-software");
-}
-
-function checkForCompositor() {
-  let gfxInfo = Cc["@mozilla.org/gfx/info;1"].getService(Ci.nsIGfxInfo);
-  let gfxFeatures = gfxInfo.getFeatures();
-  let compositor = gfxFeatures.hasOwnProperty("compositor")
-                   ? gfxFeatures.compositor
-                   : "none";
-  if (compositor != "none") {
-    if (compositor == "basic") {
-      initializeExperiment();
-    } else {
-      Experiments.instance().setExperimentBranch(kSELF_ID, "disqualified").then(null, Cu.reportError);
-    }
-  } else {
-    let listener = function (subject, topic) {
-      let gfxFeatures = gfxInfo.getFeatures();
-      if (gfxFeatures.compositor == "basic") {
-        initializeExperiment();
-      } else {
-        Experiments.instance().setExperimentBranch(kSELF_ID, "disqualified").then(null, Cu.reportError);
-      }
-      Services.obs.removeObserver(listener, "compositor:created");
-    };
-    Services.obs.addObserver(listener, "compositor:created", false);
-  }
-}
deleted file mode 100644
--- a/experiments/unaccelerated-compositor-process-beta56/code/install.rdf
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
-  <Description about="urn:mozilla:install-manifest">
-    <em:id>unaccelerated-compositor-process-beta56@experiments.mozilla.org</em:id>
-    <em:version>1.0.0</em:version>
-    <em:type>128</em:type>
-    <em:bootstrap>true</em:bootstrap>
-    <em:unpack>false</em:unpack>
-
-    <!-- Firefox -->
-    <em:targetApplication>
-      <Description>
-        <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
-        <em:minVersion>56.0</em:minVersion>
-        <em:maxVersion>56.0</em:maxVersion>
-      </Description>
-    </em:targetApplication>
-
-    <!-- Front End MetaData -->
-    <em:name>Unaccelerated Compositor Process Beta 56</em:name>
-    <em:description>Measures the impact of enabling compositor process for users without hardware acceleration in Firefox Beta 56 on Windows</em:description>
-    <em:aboutURL>https://bugzilla.mozilla.org/show_bug.cgi?id=1356091</em:aboutURL>
-  </Description>
-</RDF>
deleted file mode 100644
index 27d5828fe2dca0e0135a50dbadc779fe23c4cdf2..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
GIT binary patch
literal 0
Hc$@<O00001
deleted file mode 100644
--- a/experiments/unaccelerated-compositor-process-beta56/manifest.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
-  "publish"     : true,
-  "priority"    : 2,
-  "name"        : "Unaccelerated Compositor Process Beta 56",
-  "description" : "Measures the impact of enabling compositor process for users without hardware acceleration in Firefox Beta 56 on Windows",
-  "info"        : "<p><a href=\"https://bugzilla.mozilla.org/show_bug.cgi?id=1356091\">Related bug</a></p>",
-  "manifest"    : {
-    "id"               : "unaccelerated-compositor-process-beta56@experiments.mozilla.org",
-    "startTime"        : 1503878400,
-    "endTime"          : 1505865600,
-    "maxActiveSeconds" : 864000,
-    "appName"          : ["Firefox"],
-    "channel"          : ["beta"],
-    "minVersion"       : "56.0",
-    "maxVersion"       : "56.0",
-    "os"               : ["WINNT"],
-    "sample"           : 0.25
-  }
-}