We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Add-on only works once when enabled or reloaded

  • 2 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 JoshPham97

more options

Hello,

I am currently developing an add-on for Fire Fox. Apparently, my add-on only works on pages that are being opened at the time the add on is installed, reloaded or enabled. The add on does not work on pages opened afterward, even if they are the exact same pages as the one where the add-on functions correctly. The only way to make it work again is to re-install the add on, disable and re-enable it or reload the extension (using about:debugging) while the desired pages are opened.

For example, if I go to gmail and install the add-on while the page is open, the add-on will work on that particular page. If I open another tab and go to the exact same url, the add-on will not work.

The add-on is originally a Chrome extension, ported to Firefox. It works fine in Chrome, and does not seem to have any issues working in Firefox when it is working properly. Hence, I assume that this is a bug caused by the Firefox browser.

I would like to verify my hypothesis. Has anyone encountered this bug? What can I do to resolve this issue?

Hello, I am currently developing an add-on for Fire Fox. Apparently, my add-on only works on pages that are being opened at the time the add on is installed, reloaded or enabled. The add on does not work on pages opened afterward, even if they are the exact same pages as the one where the add-on functions correctly. The only way to make it work again is to re-install the add on, disable and re-enable it or reload the extension (using about:debugging) while the desired pages are opened. For example, if I go to gmail and install the add-on while the page is open, the add-on will work on that particular page. If I open another tab and go to the exact same url, the add-on will not work. The add-on is originally a Chrome extension, ported to Firefox. It works fine in Chrome, and does not seem to have any issues working in Firefox when it is working properly. Hence, I assume that this is a bug caused by the Firefox browser. I would like to verify my hypothesis. Has anyone encountered this bug? What can I do to resolve this issue?

所有回覆 (2)

more options

Hi

Thank you for your question, but this sounds more like an add-on development question than an issue with Firefox.

I recommend you ask in the add-on forum where there should be someone who should be able to help.

more options

Hi,

Thank you for the quick reply. I will post the question in the forum then.