chrome-script.js 730 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * @fileoverview Defines the environment for SpecialPowers chrome script.
  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. var { globals } = require("./special-powers-sandbox");
  10. var util = require("util");
  11. module.exports = {
  12. globals: util._extend(
  13. {
  14. // testing/specialpowers/content/SpecialPowersParent.sys.mjs
  15. // SPLoadChromeScript block
  16. createWindowlessBrowser: false,
  17. sendAsyncMessage: false,
  18. addMessageListener: false,
  19. removeMessageListener: false,
  20. actorParent: false,
  21. },
  22. globals
  23. ),
  24. };