# New FireFox broke the extension

**URL:** <https://discourse.mozilla.org/t/new-firefox-broke-the-extension/90730>\
**Category:** Development\
**Created:** [December 26, 2021, 10:10am UTC](https://discourse.mozilla.org/t/new-firefox-broke-the-extension/90730 "2021-12-26T10:10:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![zigazajc007](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zigazajc007](https://discourse.mozilla.org/u/zigazajc007)\
**Post date:** [December 26, 2021, 10:10am UTC](https://discourse.mozilla.org/t/new-firefox-broke-the-extension/90730/1 "2021-12-26T10:10:32Z")

</div>

Hello,

When I have submitted the extension on 23.11.2021 it was working great. Today 26.12.2021 I have received a bad review that extension isn’t working. I have checked it and the user has right. Extension doesn’t work anymore.

I don’t know where the problem is as extension just froze on the latest Firefox version 95.0.2.

Extension: [https://addons.mozilla.org/en-US/firefox/addon/passky](https://addons.mozilla.org/en-US/firefox/addon/passky)

Source Code: [https://github.com/Rabbit-Company/Passky-Browser-Extension](https://github.com/Rabbit-Company/Passky-Browser-Extension)

Extension works normal on Chromium based browsers.

---

<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:** [December 26, 2021, 8:22pm UTC](https://discourse.mozilla.org/t/new-firefox-broke-the-extension/90730/2 "2021-12-26T20:22:28Z")

</div>

What do you mean by “froze”?

I don’t have an account, so I assume I can’t replicate the problem and someone with an account needs to try to debug it. Probably you are in the best position, perhaps using the about:debugging Inspector \> Console to look for error messages related to the problem.

---

<div class="post-metadata">

**Author:** ![zigazajc007](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zigazajc007](https://discourse.mozilla.org/u/zigazajc007)\
**Post date:** [December 26, 2021, 9:03pm UTC](https://discourse.mozilla.org/t/new-firefox-broke-the-extension/90730/3 "2021-12-26T21:03:53Z")

</div>

It does only froze, if you don’t inspect elements. In the video you can see that even when you click on Sign up button everything froze and also when you select anything from drop down menu when you are logged in. But if you inspect elements / debug mode everything works just normal.

[![](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/3X/3/e/3e754f3e4bcc2fec55cd9fbe04d91468646a07c9.jpeg "Firefox extension froze, if you don't inspect elements / debug mode.") ](https://www.youtube.com/watch?v=9TJW-u2oxL4)

---

<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:** [December 27, 2021, 12:00am UTC](https://discourse.mozilla.org/t/new-firefox-broke-the-extension/90730/4 "2021-12-27T00:00:58Z")

</div>

Wow, I don’t know what is happening there. I installed the extension in a test profile and submitted ridiculous information and clicked Sign In, and it informed me that my username was not recognized. I didn’t have that brokenness, at least at the first stage.

---

<div class="post-metadata">

**Author:** ![zigazajc007](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zigazajc007](https://discourse.mozilla.org/u/zigazajc007)\
**Post date:** [December 27, 2021, 8:33am UTC](https://discourse.mozilla.org/t/new-firefox-broke-the-extension/90730/5 "2021-12-27T08:33:02Z")

</div>

Button Sign in should work normal. Try to press on Sign Up button. This is where it froze for me.

---

<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:** [December 27, 2021, 7:33pm UTC](https://discourse.mozilla.org/t/new-firefox-broke-the-extension/90730/6 "2021-12-27T19:33:53Z")

</div>

Okay, now I see what you mean. Your event fires but the change doesn’t complete for some reason (the page does not change, and the initial page is inoperable):

```auto
document.getElementById("btn_signup").addEventListener("click", () => {
    window.location.href = "register.html";
});

```

If I try this, I get a completely blank panel:

```auto
document.getElementById("btn_signup").addEventListener("click", () => {
    window.location.replace("register.html");
});

```

Maybe the location object is not a legal way to change the page in the popup? That said, I’m not sure why it would work with the Inspector open. That may be a useful clue, but I’m not sure what it is telling us.

---

<div class="post-metadata">

**Author:** ![zigazajc007](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zigazajc007](https://discourse.mozilla.org/u/zigazajc007)\
**Post date:** [December 28, 2021, 7:59am UTC](https://discourse.mozilla.org/t/new-firefox-broke-the-extension/90730/7 "2021-12-28T07:59:26Z")

</div>

After some debugging window.location.replace(“page.html”) opens blank page, but also froze if you first complete another action and then click on the button.

Where is the best place to report a bug?

Edited:  
When in inspect elements everything works like it used to work (before FireFox update). So I’m quite sure this needs to be a bug.

---

<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:** [December 28, 2021, 5:42pm UTC](https://discourse.mozilla.org/t/new-firefox-broke-the-extension/90730/8 "2021-12-28T17:42:38Z")

</div>

You can file bugs on: [https://bugzilla.mozilla.org/](https://bugzilla.mozilla.org/)

---

<div class="post-metadata">

**Author:** ![hans\_squared](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/hans_squared/32/67424_2.png) [@hans\_squared](https://discourse.mozilla.org/u/hans_squared)\
**Post date:** [December 28, 2021, 9:51pm UTC](https://discourse.mozilla.org/t/new-firefox-broke-the-extension/90730/9 "2021-12-28T21:51:34Z")

</div>

I’d suggest using [https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/update](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/update)  
but I can’t get that to work with a popup.  
(more info in a separate post)

---

<div class="post-metadata">

**Author:** ![zigazajc007](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zigazajc007](https://discourse.mozilla.org/u/zigazajc007)\
**Post date:** [December 29, 2021, 7:07am UTC](https://discourse.mozilla.org/t/new-firefox-broke-the-extension/90730/10 "2021-12-29T07:07:03Z")

</div>

Currently I use the same code for Website and Browser Extension. I don’t want to use any special code, that would separate the project. I have chosen html, css and JavaScript as it is similar to “Write code once runs everywhere”. So the same code uses browser extension, website, PWA (Desktop Application, Phone application (TWA)).
