I’m trying to publish an extension that makes use of a deep learning model to classifying tracking requests in visited webpages.
Currently, in order to use the tensorflow.js library, needed for the deep learning model to work, “unsafe-eval” has to be allowed because the tensorflow script makes use of the method “Function()”.
The reviewer told me to include the npm package in the zip of my extension “so we can see if we can inspect the library sources, if not we will have to ask you to avoid using it for security reason.”
I did that and the extension was approved, my problem now is that the add-on is not working once published and the console show messages that seem related to problems with “unsafe-eval” permissions. This same package works fine and as intended in Firefox Developer Edition.
How can I solve this so my add-on also works on the normal Firefox?