So, I’m trying to create an embedded WebExtension in order to migrate data from an overlay extension. Of course, it’s not as easy as it would be for the other types of legacy extensions, but I managed to find what I needed, and now the embedded webext is getting started, and messages can be sent. So, it’s… almost working.
For some reason, though, when I try to do a browser.storage.local.set(...)
, I get the error, “browser.storage is undefined”. It doesn’t matter whether the manifest.json includes the “storage” permission or not. Is setting permissions something the embedding code also has to take care of, or is there something else going on?
And yes, I made a reduced test by taking the published example and just adding browser.storage.local.set({foo: 42});
to it. Same result, with or without specifying the “storage” permission.