Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Errors

var ssm = Services.scriptSecurityManager;
function makeURI(uri) {
return Services.io.newURI(uri);
}
function testIPV6Host(aHost, aExpected) {
var ipv6Host = ssm.createContentPrincipal(makeURI(aHost), {});
Assert.equal(ipv6Host.origin, aExpected);
}
}