import-content-task-globals.rst (577B)
1 import-content-task-globals 2 =========================== 3 4 For files containing ContentTask.spawn, SpecialPowers.spawn, and 5 SpecialPowers.spawnChrome calls, this will automatically declare 6 the frame script variables in the global scope. By default the configs only 7 specify it for the mochitest based configurations. 8 9 Note: due to the way ESLint works, it appears it is only easy to declare these 10 variables on a file global scope, rather than function global. This may mean that 11 they are incorrectly allowed, but given they are test files, this should be 12 detected during testing.