xStyle icon indicating copy to clipboard operation
xStyle copied to clipboard

Backup with Firefox Sync

Open roblabla opened this issue 7 years ago • 3 comments

It'd be nice if xStyle could use firefox sync to save the styles. Firefox Sync is accessible through the storage.sync API.

EDIT: It seems xStyle does use storage.sync to save preferences

https://github.com/FirefoxBar/xStyle/blob/06c2af39051be2b60f83485ca53d8773a39eddda/scripts/storage.js#L676

yet for whatever reason it didn't synchronize my CSS styles. 🤔

roblabla avatar Sep 27 '17 21:09 roblabla

The upper limit of the Firefox sync space is 100kb, it can not storage all styles. Documention: MDN

sylingd avatar Sep 27 '17 23:09 sylingd

Hmm, that shucks. I used to use https://addons.mozilla.org/en-US/firefox/addon/stylishsync/ to synchronize my stylish styles across multiple devices, and it worked rather well.

After looking around, it seems the storage.sync doesn't really have any guarantees from mozilla's side. From https://bugzilla.mozilla.org/show_bug.cgi?id=1220494 :

We might just delete the server and data, but hopefully not. We don't really provide an SLA on our services, but I wanted to get across to developers that this is not a service with an expected uptime, or performance but rather as is. Writing an extension that expects it to be always available and guaranteeing the data hasn't had something happen to it will merely end in disappointment and little sympathy when people email us angrily.

If we find chrome.storage.sync is really useful to developers we might increase its use in the future and provide something with more guarantees.

roblabla avatar Sep 28 '17 13:09 roblabla

I won't add this feature until Mozilla remove the space limit. Using Google Drive/OneDrive/Dropbox to storage your styles is the best choice now.

sylingd avatar Sep 28 '17 23:09 sylingd