4 var newURI = Services.io.newURI("http://foo.com");
8 newURI = newURI.mutate().setSpec("http: //foo.com").finalize();
10 success = e.result == Cr.NS_ERROR_MALFORMED_URI;
14 "We didn't throw NS_ERROR_MALFORMED_URI when a space was passed in the hostname!"
20 newURI.mutate().setHost(" foo.com").finalize();
22 success = e.result == Cr.NS_ERROR_MALFORMED_URI;
26 "We didn't throw NS_ERROR_MALFORMED_URI when a space was passed in the hostname!"