blob: 07c476f11b5eb44278552b472d8813b46240fa8a (
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"
);
});
}
);
});
|