tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

browser_controlCenter.js (582B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 /* import-globals-from ../head.js */
      6 
      7 "use strict";
      8 
      9 add_setup(async function () {
     10  await SpecialPowers.pushPrefEnv({
     11    set: [["browser.urlbar.trustPanel.featureGate", false]],
     12  });
     13 });
     14 
     15 add_task(async function capture() {
     16  if (!shouldCapture()) {
     17    return;
     18  }
     19  let sets = ["LightweightThemes", "ControlCenter"];
     20 
     21  await TestRunner.start(sets, "controlCenter");
     22 });