Search code examples
firefox-addon-webextensions

How to keep firefox web extension popup from closing when clicking on inspector window


I'm having a hard time debugging my Firefox extension (popup). Whenever I click on the debug pane, the popup closes and all the information in the debug pane is gone. This happens when trying to inspect the network requests, copy something from the console, or look at the element styles in the inspector.

I'm sure other Firefox extension devs have encountered this problem. How did you solve it?


Solution

  • You can disable popups closing when something outside of it is focused from the add-on debugger toolbox: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Debugging#Debugging_popups