Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

// This is just a crashtest for a url that is rejected at parse time (port 80,000)
"use strict";
function run_test() {
// Bug 1301621 makes invalid ports throw
Assert.throws(
() => {
NetUtil.newChannel({
loadUsingSystemPrincipal: true,
});
},
/NS_ERROR_MALFORMED_URI/,
"invalid port"
);
do_test_finished();
}