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