Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'win' && socketprocess_networking && fission OR os == 'mac' && socketprocess_networking && fission OR os == 'mac' && debug OR os == 'linux' && socketprocess_networking
- Manifest: toolkit/components/extensions/test/xpcshell/xpcshell-remote.toml includes toolkit/components/extensions/test/xpcshell/xpcshell-common.toml
- Manifest: toolkit/components/extensions/test/xpcshell/xpcshell.toml includes toolkit/components/extensions/test/xpcshell/xpcshell-common.toml
"use strict";
/**
* This test is asserting that moz-extension: URLs are recognized as trustworthy local origins
*/
add_task(
function test_isOriginPotentiallyTrustworthnsIContentSecurityManagery() {
let principal = Services.scriptSecurityManager.createContentPrincipal(
uri,
{}
);
Assert.equal(
principal.isOriginPotentiallyTrustworthy,
true,
"it is potentially trustworthy"
);
}
);