tor-browser

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

browser_utility_multipleAudio.js (706B)


      1 /* Any copyright is dedicated to the Public Domain.
      2 * http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 /* import-globals-from head-multiple.js */
      7 
      8 Services.scriptloader.loadSubScript(
      9  "chrome://mochitests/content/browser/ipc/glue/test/browser/head-multiple.js",
     10  this
     11 );
     12 
     13 add_setup(async function checkAudioDecodingNonUtility() {
     14  const isAudioDecodingNonUtilityAllowed = await SpecialPowers.getBoolPref(
     15    "media.allow-audio-non-utility"
     16  );
     17  ok(
     18    !isAudioDecodingNonUtilityAllowed,
     19    "Audio decoding should not be allowed on non utility processes by default"
     20  );
     21 });
     22 
     23 add_task(async function testAudioDecodingInUtility() {
     24  await runTest({ expectUtility: true });
     25 });