1
0
Fork 0
firefox/docshell/test/browser/browser_bug388121-1.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

22 lines
617 B
JavaScript

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"
);
});
}
);
});