mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 21:55:31 +00:00
65e072aa45
MozReview-Commit-ID: 5FbRUsYzJdy --HG-- extra : rebase_source : dba9575a3d3a56560f39a81c6a3431da4e21f3e9
18 lines
414 B
JavaScript
18 lines
414 B
JavaScript
// This is just a crashtest for a url that is rejected at parse time (port 80,000)
|
|
|
|
Cu.import("resource://gre/modules/NetUtil.jsm");
|
|
|
|
function run_test()
|
|
{
|
|
// Bug 1301621 makes invalid ports throw
|
|
Assert.throws(() => {
|
|
var chan = NetUtil.newChannel({
|
|
uri: "http://localhost:80000/",
|
|
loadUsingSystemPrincipal: true
|
|
});
|
|
}, "invalid port");
|
|
|
|
do_test_finished();
|
|
}
|
|
|