Bug 1649440 - Move ContentTaskUtils into specialpowers to make SpecialPowers.spawn work in reftests. r=jmaher

We'd like to use SpecialPowers.spawn to do something in cross-origin iframes in reftests.
Without moving the file calling SpecialPowers.spawn in reftests raises an exception
at here [1] in SpecialPowersChild.sys.mjs.

[1] https://searchfox.org/mozilla-central/rev/2bf90dc51ce7e8274ce208fbb9d68b3ff535185e/testing/specialpowers/content/SpecialPowersChild.sys.mjs#1637

Depends on D184439

Differential Revision: https://phabricator.services.mozilla.com/D185246
This commit is contained in:
Hiroyuki Ikezoe 2023-08-29 08:52:05 +00:00
parent 64723af836
commit c9d70d2d48
3 changed files with 1 additions and 1 deletions

View File

@ -12,5 +12,4 @@ TESTING_JS_MODULES += [
"ContentEventListenerChild.sys.mjs",
"ContentEventListenerParent.sys.mjs",
"ContentTask.sys.mjs",
"ContentTaskUtils.sys.mjs",
]

View File

@ -21,6 +21,7 @@ FINAL_TARGET_FILES.content += [
]
modules = [
"content/ContentTaskUtils.sys.mjs",
"content/MockColorPicker.sys.mjs",
"content/MockFilePicker.sys.mjs",
"content/MockPermissionPrompt.sys.mjs",