browser_bug388121-1.js (617B)
1 add_task(async function test() { 2 await BrowserTestUtils.withNewTab( 3 { gBrowser, url: "about:blank" }, 4 async function (newBrowser) { 5 await SpecialPowers.spawn(newBrowser, [], async function () { 6 var prin = content.document.nodePrincipal; 7 Assert.notEqual(prin, null, "Loaded principal must not be null"); 8 Assert.notEqual( 9 prin, 10 undefined, 11 "Loaded principal must not be undefined" 12 ); 13 14 Assert.equal( 15 prin.isSystemPrincipal, 16 false, 17 "Loaded principal must not be system" 18 ); 19 }); 20 } 21 ); 22 });