mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 05:39:41 +02:00
Replaced instances of callers in both C++ and JS files to query the state from the principal directly. Differential Revision: https://phabricator.services.mozilla.com/D22532 --HG-- extra : moz-landing-system : lando
13 lines
518 B
JavaScript
13 lines
518 B
JavaScript
add_task(async function test() {
|
|
await BrowserTestUtils.withNewTab({ gBrowser, url: "about:blank" }, async function(newBrowser) {
|
|
await ContentTask.spawn(newBrowser, null, 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");
|
|
});
|
|
});
|
|
});
|
|
|