Juha-Matti Santala
Community Builder. Dreamer. Adventurer.

🍿 Firefox extensions: a workaround for extension storage update bug

Snacks (🍿) are my collection of recipes for solving problems. Often recorded (and cleaned up) from actual discussions where I'm involved in helping others with technical problems. Not all solutions are mine but I started collecting them in one place because you never know when you need one.


There's a bug in Firefox that causes the extension storage panel in DevTools not update correctly.

From that bug report, I learned there's a workaround. By writing an empty listener for onChanged, the code that updates that panel is run:

browser.storage.local.onChanged.addListener(() => {});