3 add_task(async function test_executeScriptAfterNuked() {
4 let scriptUrl = Services.io.newFileURI(do_get_file("file_simple_script.js")).spec;
6 // Load the script for the first time into a sandbox, and then nuke
8 let sandbox = Cu.Sandbox(Services.scriptSecurityManager.getSystemPrincipal());
9 Services.scriptloader.loadSubScript(scriptUrl, sandbox);
10 Cu.nukeSandbox(sandbox);
12 // Load the script again into a new sandbox, and make sure it
14 sandbox = Cu.Sandbox(Services.scriptSecurityManager.getSystemPrincipal());
15 Services.scriptloader.loadSubScript(scriptUrl, sandbox);