WebExtension - storage.local.clear() don't work

Hi,

When I tried to clear the storage.local, there is a problem.

  1. I open a popup and I tried to clear.
    With this code : browser.storage.local.clear();


  2. It’s clear yeah ! But when I refresh the storage.local it’s back …

Available here : https://addons.mozilla.org/en-US/firefox/addon/navigation-stats-plus/

So I really don’t know what happen. If anyone know it and can help me, thanks.

browser.storage.local is not localStorage!

Your hostNavigationStats has not been cleared, and it also reside in the background as global object.

1 Like