Bug 1498572 - Remove eval from harness.xul r=ckerschb
authorvinoth <cegvinoth@gmail.com>
Tue, 23 Oct 2018 06:58:11 +0000
changeset 442552 6615d7dcdec1cde7705d880c932a6ed33b52d806
parent 442551 0dc37e5676af1f7851a7a86a339d9903fa42e59c
child 442553 5b7afb9ada5e29dabba18a040bdcb509f3a3a315
push id34913
push useraciure@mozilla.com
push dateTue, 23 Oct 2018 16:49:58 +0000
treeherdermozilla-central@ff3ed362e82f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersckerschb
bugs1498572
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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>