special-powers-sandbox.js 981 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * @fileoverview Defines the environment for SpecialPowers sandbox.
  3. *
  4. * This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. */
  8. "use strict";
  9. module.exports = {
  10. globals: {
  11. // wantComponents defaults to true,
  12. Components: false,
  13. Ci: false,
  14. Cr: false,
  15. Cc: false,
  16. Cu: false,
  17. Services: false,
  18. // testing/specialpowers/content/SpecialPowersSandbox.sys.mjs
  19. // SANDBOX_GLOBALS
  20. Blob: false,
  21. ChromeUtils: false,
  22. FileReader: false,
  23. TextDecoder: false,
  24. TextEncoder: false,
  25. URL: false,
  26. // EXTRA_IMPORTS
  27. EventUtils: false,
  28. // SpecialPowersSandbox constructor
  29. assert: false,
  30. Assert: false,
  31. BrowsingContext: false,
  32. InspectorUtils: false,
  33. ok: false,
  34. is: false,
  35. isnot: false,
  36. todo: false,
  37. todo_is: false,
  38. info: false,
  39. },
  40. };