tor-browser

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

browser_content_sandbox_fs_snap.js (912B)


      1 /* Any copyright is dedicated to the Public Domain.
      2 * http://creativecommons.org/publicdomain/zero/1.0/ */
      3 /* import-globals-from browser_content_sandbox_utils.js */
      4 "use strict";
      5 
      6 Services.scriptloader.loadSubScript(
      7  "chrome://mochitests/content/browser/" +
      8    "security/sandbox/test/browser_content_sandbox_utils.js",
      9  this
     10 );
     11 
     12 Services.scriptloader.loadSubScript(
     13  "chrome://mochitests/content/browser/" +
     14    "security/sandbox/test/browser_content_sandbox_fs_tests.js",
     15  this
     16 );
     17 
     18 add_task(async function () {
     19  // Ensure that SNAP is there
     20  const snap = Services.env.get("SNAP");
     21  Assert.greater(snap.length, 1, "SNAP is defined");
     22 
     23  // If it is there, do actual testing
     24  sanityChecks();
     25 
     26  add_task(testFileAccessLinuxOnly); // eslint-disable-line no-undef
     27 
     28  add_task(testFileAccessLinuxSnap); // eslint-disable-line no-undef
     29 
     30  add_task(cleanupBrowserTabs); // eslint-disable-line no-undef
     31 });