Commit 77b6b3cc authored by Andrew Osmond's avatar Andrew Osmond
Browse files

Bug 1794722 - Part 3. Remove all uses of GfxInfo::GetWebRenderEnabled....

Bug 1794722 - Part 3. Remove all uses of GfxInfo::GetWebRenderEnabled. r=jrmuizel,webcompat-reviewers,twisniewski

This is always true.

Differential Revision: https://phabricator.services.mozilla.com/D160122
parent 9d245b83
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -9,19 +9,6 @@
 */

add_task(async function() {
  const isWebRenderEnabled = Services.prefs.getBoolPref("gfx.webrender.all");
  const isFissionEnabled = SpecialPowers.useRemoteSubframes;
  if (isFissionEnabled && !isWebRenderEnabled) {
    // This configuration is not supported.
    // Also, in this specific configuration, we're displaying a warning, which looks like a flicker.
    // Deactivating test.
    ok(
      true,
      "Detected Fission without WebRender. Flicker expected, deactivating flicker test"
    );
    return;
  }

  let startupRecorder = Cc["@mozilla.org/test/startuprecorder;1"].getService()
    .wrappedJSObject;
  await startupRecorder.done;
+0 −7
Original line number Diff line number Diff line
@@ -13,13 +13,6 @@ function isTelemetryEnabled() {
  );
}

function isWebRenderEnabled() {
  return (
    Services.prefs.getBoolPref("gfx.webrender.all", false) ||
    Services.prefs.getBoolPref("gfx.webrender.enabled", false)
  );
}

this.browserInfo = class extends ExtensionAPI {
  getAPI(context) {
    return {
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
  "name": "WebCompat Reporter",
  "description": "Report site compatibility issues on webcompat.com",
  "author": "Thomas Wisniewski <twisniewski@mozilla.com>",
  "version": "1.5.0",
  "version": "1.5.1",
  "homepage_url": "https://github.com/mozilla/webcompat-reporter",
  "applications": {
    "gecko": {
+70 −87
Original line number Diff line number Diff line
@@ -5,10 +5,6 @@

/* global openSimulationMenu, toggleSimulationOption */

const {
  isWebRenderEnabled,
} = require("resource://devtools/server/actors/utils/accessibility.js");

const TEST_URI = `<html>
  <head>
    <meta charset="utf-8"/>
@@ -24,18 +20,6 @@ const TEST_URI = `<html>
  </body>
</html>`;

if (!isWebRenderEnabled(window)) {
  addA11YPanelTask(
    "Test that simulation menu button does not exist without WebRender.",
    TEST_URI,
    async function({ doc }) {
      ok(
        !doc.querySelector("#simulation-menu-button"),
        "Simulation menu is not shown without WebRender."
      );
    }
  );
} else {
/**
 * Test data has the format of:
 * {
@@ -117,4 +101,3 @@ if (!isWebRenderEnabled(window)) {
  TEST_URI,
  "Test selecting and unselecting simulation options updates UI."
);
}
+0 −11
Original line number Diff line number Diff line
@@ -24,12 +24,6 @@ loader.lazyRequireGetter(
  "resource://devtools/server/actors/accessibility/simulator.js",
  true
);
loader.lazyRequireGetter(
  this,
  "isWebRenderEnabled",
  "resource://devtools/server/actors/utils/accessibility.js",
  true
);

/**
 * The AccessibilityActor is a top level container actor that initializes
@@ -116,11 +110,6 @@ const AccessibilityActor = ActorClassWithSpec(accessibilitySpec, {
   *         SimulatorActor for the current tab.
   */
  getSimulator() {
    // TODO: Remove this check after Bug1570667
    if (!isWebRenderEnabled(this.targetActor.window)) {
      return null;
    }

    if (!this.simulator) {
      this.simulator = new SimulatorActor(this.conn, this.targetActor);
      this.manage(this.simulator);
Loading