If I understand correctly, popup.html and background.html share the same local storage since they run in the same sandbox. And content script does not share the same one since it run in another sandbox. Right?
If I understand correctly, popup.html and background.html share the same local storage since they
Share
Correct. Calling
localStoragefrom a Chrome extension’s Background page, Browser Action page or Page Action page uses the extension’s local storage.Content scripts only run on normal web pages and generally can’t access Chrome’s extension API, so their local storage access would be limited to the specific website’s local storage.