There seems to be an issue with the executeScript_Sandbox in the new Firefox version released yesterday. Simple scripts (with no ES6 methods) that ran fine in the prior Firefox version, and run correctly in the current Chrome version, are now returning “undefined”.
Consider the following:
{
"Name": "random 1a",
"CreationDate": "2024-4-30",
"Commands": [
{
"Command": "executeScript_Sandbox",
"Target": "var string = '$8,495'; var stripped = string.replace(/[^0-9]/g, \"\"); return stripped;",
"Value": "test",
"Description": ""
},
{
"Command": "echo",
"Target": "${test}",
"Value": "",
"Description": ""
}
]
}
In the current version of Chrome and Firefox version 6.2.8, this will return “8495” as expected. In the new Firefox version, Sandbox returns “undefined”. If I change it to just “executeScript” in the new Firefox version, it returns “8495”.