Bug 1498572 - Remove eval from harness.xul r=ckerschb
authorvinoth <cegvinoth@gmail.com>
Tue, 23 Oct 2018 06:58:11 +0000
changeset 490892 6615d7dcdec1cde7705d880c932a6ed33b52d806
parent 490891 0dc37e5676af1f7851a7a86a339d9903fa42e59c
child 490893 5b7afb9ada5e29dabba18a040bdcb509f3a3a315
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersckerschb
bugs1498572
milestone65.0a1
Bug 1498572 - Remove eval from harness.xul r=ckerschb Differential Revision: https://phabricator.services.mozilla.com/D9383
testing/mochitest/harness.xul
--- a/testing/mochitest/harness.xul
+++ b/testing/mochitest/harness.xul
@@ -43,17 +43,17 @@ function linkAndHookup(links) {
 
   // generate our test list
   srvScope.makeTags();
   var tableContent = srvScope.linksToTableRows(links, 0);
 
   function populate() {
     document.getElementById("test-table").innerHTML += tableContent;
   }
-  gTestList = eval(srvScope.jsonArrayOfTestFiles(links));
+  gTestList = JSON.parse(srvScope.jsonArrayOfTestFiles(links));
   populate();
 
   hookup();
 }
 
     window.addEventListener("load", loadTests, false);
   ]]>
   </script>