const Cm = Components.manager; async function testFirstPartyDomain(pageInfo) { const EXPECTED_DOMAIN = "example.com"; await BrowserTestUtils.waitForEvent(pageInfo, "page-info-init"); info("pageInfo initialized"); let tree = pageInfo.document.getElementById("imagetree"); Assert.ok(!!tree, "should have imagetree element"); // i=0: // i=1: