tor-browser

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

test_3rdparty.js (526B)


      1 /* Any copyright is dedicated to the Public Domain.
      2 * http://creativecommons.org/publicdomain/zero/1.0/ */
      3 "use strict";
      4 
      5 add_task(async function setup() {
      6  await setupPolicyEngineWithJson({
      7    policies: {
      8      "3rdparty": {
      9        Extensions: {
     10          "3rdparty-policy@mozilla.com": {
     11            string: "value",
     12          },
     13        },
     14      },
     15    },
     16  });
     17 
     18  let extensionPolicy = Services.policies.getExtensionPolicy(
     19    "3rdparty-policy@mozilla.com"
     20  );
     21  deepEqual(extensionPolicy, { string: "value" });
     22 });