"use strict"; const { TestUtils } = ChromeUtils.importESModule( "resource://testing-common/TestUtils.sys.mjs" ); const { XPCShellContentUtils } = ChromeUtils.importESModule( "resource://testing-common/XPCShellContentUtils.sys.mjs" ); const { setTimeout } = ChromeUtils.importESModule( "resource://gre/modules/Timer.sys.mjs" ); XPCShellContentUtils.init(this); function delay() { return new Promise(resolve => { setTimeout(resolve, 0); }); } const server = XPCShellContentUtils.createHttpServer({ hosts: ["example.com"], }); // XML document with only a