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 */
6 Services.scriptloader.loadSubScript(
7 "chrome://mochitests/content/browser/" +
8 "security/sandbox/test/browser_content_sandbox_utils.js",
12 Services.scriptloader.loadSubScript(
13 "chrome://mochitests/content/browser/" +
14 "security/sandbox/test/browser_content_sandbox_fs_tests.js",
18 add_task(async function () {
19 // Ensure that XDG_CONFIG_HOME is there
20 const xdgConfigHome = Services.env.get("XDG_CONFIG_HOME");
21 ok(xdgConfigHome.length > 1, "XDG_CONFIG_HOME is defined");
23 // If it is there, do actual testing
26 // The linux only tests are the ones that can behave differently based on
27 // existence of XDG_CONFIG_HOME
28 add_task(testFileAccessLinuxOnly); // eslint-disable-line no-undef
30 add_task(cleanupBrowserTabs); // eslint-disable-line no-undef