# Extension working on Firefox Developer Edition but not published version for Firefox

**URL:** <https://discourse.mozilla.org/t/extension-working-on-firefox-developer-edition-but-not-published-version-for-firefox/74803>\
**Category:** Development\
**Tags:** issue\
**Created:** [February 1, 2021, 11:19am UTC](https://discourse.mozilla.org/t/extension-working-on-firefox-developer-edition-but-not-published-version-for-firefox/74803 "2021-02-01T11:19:40Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![trahvex](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@trahvex](https://discourse.mozilla.org/u/trahvex)\
**Post date:** [February 1, 2021, 11:19am UTC](https://discourse.mozilla.org/t/extension-working-on-firefox-developer-edition-but-not-published-version-for-firefox/74803/1 "2021-02-01T11:19:40Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jscher2000](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/jscher2000/32/28202_2.png) [@jscher2000](https://discourse.mozilla.org/u/jscher2000)\
**Post date:** [February 1, 2021, 7:33pm UTC](https://discourse.mozilla.org/t/extension-working-on-firefox-developer-edition-but-not-published-version-for-firefox/74803/2 "2021-02-01T19:33:39Z")

</div>

Which console? Is this a content script? Are you getting CSP errors?

---

<div class="post-metadata">

**Author:** ![trahvex](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@trahvex](https://discourse.mozilla.org/u/trahvex)\
**Post date:** [February 1, 2021, 7:46pm UTC](https://discourse.mozilla.org/t/extension-working-on-firefox-developer-edition-but-not-published-version-for-firefox/74803/3 "2021-02-01T19:46:00Z")

</div>

Console found in “about:debugging” and inspecting the add-on. It’s a backgorund script. Yes, it shows a CSP error and then errors of “missing host permissions”.

First message that appears is a warning that says “Content Security Policy: Unable to interpret invalid host ‘wasm-eval’”

---

<div class="post-metadata">

**Author:** ![jscher2000](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/jscher2000/32/28202_2.png) [@jscher2000](https://discourse.mozilla.org/u/jscher2000)\
**Post date:** [February 1, 2021, 8:45pm UTC](https://discourse.mozilla.org/t/extension-working-on-firefox-developer-edition-but-not-published-version-for-firefox/74803/4 "2021-02-01T20:45:29Z")

</div>

wasm-eval doesn’t sound like a host name… but also not a valid keyword judging from MDN:

[https://developer.mozilla.org/docs/Web/HTTP/Headers/Content-Security-Policy/script-src](https://developer.mozilla.org/docs/Web/HTTP/Headers/Content-Security-Policy/script-src)

Any idea where it’s coming from?

---

<div class="post-metadata">

**Author:** ![trahvex](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@trahvex](https://discourse.mozilla.org/u/trahvex)\
**Post date:** [February 2, 2021, 11:08am UTC](https://discourse.mozilla.org/t/extension-working-on-firefox-developer-edition-but-not-published-version-for-firefox/74803/6 "2021-02-02T11:08:48Z")

</div>

I don’t really know, there’s a bunch of errors that I don’t know how to identify because I have never seen it during the development of the extension and they just appeared once the extension was published but doesn’t happen on the Firefox Developer version.  
Here is how the console looks as I start the browser:

 ![image](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/3X/a/7/a72282a9e8ce2d6fd3f856e2fc20e314e4b0e12b.png)

---

<div class="post-metadata">

**Author:** ![caitlin](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/caitlin/32/6091_2.png) [@caitlin](https://discourse.mozilla.org/u/caitlin)\
**Post date:** [February 2, 2021, 5:10pm UTC](https://discourse.mozilla.org/t/extension-working-on-firefox-developer-edition-but-not-published-version-for-firefox/74803/7 "2021-02-02T17:10:26Z")

</div>

Hey @trahvex, what’s the name of your add-on? That will help us investigate what’s going on. 🙂

**Edited to add:** Actually, could you provide the URL to the add-on’s listing or its GUID? That will help us track it down. 🙂

---

<div class="post-metadata">

**Author:** ![jscher2000](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/jscher2000/32/28202_2.png) [@jscher2000](https://discourse.mozilla.org/u/jscher2000)\
**Post date:** [February 2, 2021, 5:19pm UTC](https://discourse.mozilla.org/t/extension-working-on-firefox-developer-edition-but-not-published-version-for-firefox/74803/8 "2021-02-02T17:19:52Z")

</div>

In case you are getting noise from other activity in the browser, I suggest testing in a dedicated clean profile. You can use the about:profiles page to create a new profile; don’t sync it with your regular profile, to keep it vanilla.

Note: when creating a new profile, Firefox will make it the default. Before launching it, make sure you set your regular profile as default again to avoid problems with external links and your next Firefox startup.

---

<div class="post-metadata">

**Author:** ![trahvex](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@trahvex](https://discourse.mozilla.org/u/trahvex)\
**Post date:** [February 2, 2021, 5:58pm UTC](https://discourse.mozilla.org/t/extension-working-on-firefox-developer-edition-but-not-published-version-for-firefox/74803/9 "2021-02-02T17:58:25Z")

</div>

[https://addons.mozilla.org/en-US/firefox/addon/deep-tracking-blocker/versions/](https://addons.mozilla.org/en-US/firefox/addon/deep-tracking-blocker/versions/)  
Here it is

---

<div class="post-metadata">

**Author:** ![caitlin](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/caitlin/32/6091_2.png) [@caitlin](https://discourse.mozilla.org/u/caitlin)\
**Post date:** [February 2, 2021, 6:23pm UTC](https://discourse.mozilla.org/t/extension-working-on-firefox-developer-edition-but-not-published-version-for-firefox/74803/10 "2021-02-02T18:23:24Z")

</div>

Thanks so much @trahvex.

It seems like this is related to the about:config pref for `webgl.disable-fail-if-major-performance-caveat`. Can you change that pref to `true` on release and then disable/re-enable your extension?

---

<div class="post-metadata">

**Author:** ![trahvex](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@trahvex](https://discourse.mozilla.org/u/trahvex)\
**Post date:** [February 2, 2021, 8:06pm UTC](https://discourse.mozilla.org/t/extension-working-on-firefox-developer-edition-but-not-published-version-for-firefox/74803/11 "2021-02-02T20:06:54Z")

</div>

Okay, so embarrassing, it was indeed getting noise from other extensions I had I guess. I will look further into my add-on performance now that I solved that, thanks.

---

<div class="post-metadata">

**Author:** ![trahvex](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@trahvex](https://discourse.mozilla.org/u/trahvex)\
**Post date:** [February 2, 2021, 8:08pm UTC](https://discourse.mozilla.org/t/extension-working-on-firefox-developer-edition-but-not-published-version-for-firefox/74803/12 "2021-02-02T20:08:39Z")

</div>

Thanks, that solved the warnings related to webGL. Most of the other errors it seems they were noise from other add-ons, currently working on a cleaner environment to solve any other problem thanks.
