My add-on stopped working with FF 52, even the web-extension version I had almost finished stopped working. Does anyone else have issues with FF 52?
All errors seem to happen within FF code, with no trace to my code.
one problem on the web-extension seems to be, that FF52 finally implemented browser.storage.sync, but it seems to be broken:
(I checked if browser.storage.sync exists to use it whenever mozilla finally implements it)
browser.storage.sync.get(null, function (map) { }); // map == undefined
but using browser.storage.local still leaves the add-on broken with no errors shown.
On the normal version I get an error "Error: Creating URI from string failed"
With stacktrace only in these files:
resource://gre/modules/commonjs/sdk/loader/sandbox.js
resource://gre/modules/commonjs/toolkit/loader.js
I think it’s implemented, but off by default, so to make it work the user would need to go to about:config and change a setting. For my add-on, I work around this by just assuming browser.storage.sync doesn’t exist on Firefox.
if (!browser.storage.sync || (await browser.storage.sync.get('some_key').then(() => false, () => true))) {
// storage.sync is unavailable or broken, use storage.local instead
browser.storage.sync = browser.storage.local; // TODO: move data once .sync is available
}