diff --git a/testing/mochitest/harness.xul b/testing/mochitest/harness.xul index be36550e3767..0d90f525be11 100644 --- a/testing/mochitest/harness.xul +++ b/testing/mochitest/harness.xul @@ -48,7 +48,7 @@ function linkAndHookup(links) { function populate() { document.getElementById("test-table").innerHTML += tableContent; } - gTestList = eval(srvScope.jsonArrayOfTestFiles(links)); + gTestList = JSON.parse(srvScope.jsonArrayOfTestFiles(links)); populate(); hookup();