storeValue crashed the alert function

today i just found the window.alert in my page doesn’t work anymore. It stopped working after i used a “prompt” command in the macro. The error shown as below:

Audit usage of navigator.userAgent, navigator.appVersion, and navigator.platform

  1. A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. Starting in Chrome 101, the amount of information available in the User Agent string will be reduced.

To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData.

Note that for performance reasons, only the first access to one of the properties is shown.

  1. AFFECTED RESOURCES

  2. 1 source

1. content_script.js:1

Any clues? thanks a lot

update the bug is with the storevalue command, please refer to the comment below

I found the problem is storeValue command. after i run this:

{
“Name”: “test”,
“CreationDate”: “2023-3-14”,
“Commands”: [
{
“Command”: “storeValue”,
“Target”: “id=clock”,
“Value”: “testvar”,
“Description”: “”
},
{
“Command”: “”,
“Target”: “”,
“Value”: “”,
“Description”: “”
}
]
}

the page’s alert function will not work anymore:

test

test

    <input
    type="button"
    value="test"
     onclick="testt();"
    />