Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / netwerk / test / unit / test_bug652761.js
blob030f18a1fdde50af264957e27d39ab040a1993e8
1 // This is just a crashtest for a url that is rejected at parse time (port 80,000)
3 "use strict";
5 function run_test() {
6 // Bug 1301621 makes invalid ports throw
7 Assert.throws(
8 () => {
9 NetUtil.newChannel({
10 uri: "http://localhost:80000/",
11 loadUsingSystemPrincipal: true,
12 });
14 /NS_ERROR_MALFORMED_URI/,
15 "invalid port"
18 do_test_finished();