browser_aboutSupport_newtab_security_state.js (688B)
1 /* Any copyright is dedicated to the Public Domain. 2 * http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 add_task(async function checkIdentityOfAboutSupport() { 5 let tab = gBrowser.addTab("about:support", { 6 referrerURI: null, 7 inBackground: false, 8 allowThirdPartyFixup: false, 9 relatedToCurrent: false, 10 skipAnimation: true, 11 allowMixedContent: false, 12 triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(), 13 }); 14 15 await BrowserTestUtils.browserLoaded(tab.linkedBrowser); 16 let identityBox = document.getElementById("identity-box"); 17 is(identityBox.className, "chromeUI", "Should know that we're chrome."); 18 gBrowser.removeTab(tab); 19 });