I see you addon doesn’t have any host permissions, only the activeTab. So maybe you are missing host permission for the page where you try to run it?
Other than that I can’t tell, the whole error message looks weird. Maybe it will be better to report it either to OpenCV or to bugzilla (ideally with some example).
Yes extensions have host for their own pages but your code runs on baidu.com so it needs host permissions for that. But I’ve actually noticed you have content script registered for that domain so you do have host permissions after all.
In any case, I’ve tried to run it in my testing Firefox ESR 102 and it works . But it will fail when I run it in my Firefox 118. So this is some kind of regression.
Although, I’m actually not sure it worked in 102, it only didn’t print the error. But I remember the old ESR version had some issues printing errors raised in the content script, so that may the reason . It’s best if you test it yourself.
Thank you for your replay!
I just tested it in ESR 102 version,
The processed picture is not displayed in the bottom And the console did not report an error