Bug 935499. r=honzab

This commit is contained in:
Makoto Kato 2013-11-16 18:30:12 +09:00
parent 9a2a7049eb
commit be0206f4b3
3 changed files with 12 additions and 0 deletions

View File

@ -204,6 +204,10 @@ enum punycode_status punycode_decode(
punycode_uint n, out, i, max_out, bias,
b, j, in, oldi, w, k, digit, t;
if (!input_length) {
return punycode_bad_input;
}
/* Initialize the state: */
n = initial_n;

View File

@ -0,0 +1,7 @@
function run_test() {
var idnService = Cc["@mozilla.org/network/idn-service;1"]
.getService(Ci.nsIIDNService);
var isASCII = {};
do_check_eq(idnService.convertToDisplayIDN("xn--", isASCII), "xn--");
}

View File

@ -164,6 +164,7 @@ skip-if = os == "android"
[test_bug894586.js]
# Allocating 4GB might actually succeed on 64 bit machines
skip-if = bits != 32
[test_bug935499.js]
[test_doomentry.js]
[test_cacheflags.js]
# Bug 675039: intermittent fail on Android-armv6