w3c / webextensions

Charter and administrivia for the WebExtensions Community Group (WECG)
Other
578 stars 50 forks source link

Increase maximum total size (QUOTA_BYTES) for `storage.sync` #520

Open hanguokai opened 5 months ago

hanguokai commented 5 months ago

Issue History

We have discussed:

351 originally discussed "Maximum total size" for storage.local and storage.sync , now leaves that issue to storage.local only.

This Issue

This issue concentrates on "Maximum total size" (QUOTA_BYTES) for storage.sync. At present, storage.sync has 100KB limit. This limitation has existed for a long time. As user devices and cloud storage capabilities improve, should it be increased now?

The browser's built-in support for data synchronization is great, because it's non-trivial for developers to create their own cloud synchronization service. This requires developers to:

hanguokai commented 5 months ago

@fregante said:

Great to see that storage.local has been bumped to 10MB. Can storage.sync also be increased? 100KB is quite a small amount of data for 2024.

hanguokai commented 5 months ago

@Juraj-Masiar said:

I'm using storage.sync in several of my extensions and I highly support this upgrade. Although, to be realistic, 1MB may be too big upgrade for browser vendors. I would be happy even with 512KB or 256KB.

hanguokai commented 5 months ago

@oliverdunk said:

This is the trickiest one to change since we would need to make sure the syncing mechanism in Chrome is able to handle it. Happy to discuss it but I suspect there would be some hesitation.

Agree that there aren't any steps to take with storage.sync though.

hanguokai commented 5 months ago

@Rob--W said:

All vendors are against raising the maximum total size.

hanguokai commented 5 months ago

@dotproto said:

To add a bit of context, vendors are against raising total storage limits because of the impact this would have on their synchronization services. The sync storage area is primarily meant as a way for extensions to share configuration or settings data across logged in browsers. It is not meant as a general purpose storage solution. Developers that need a way to store and sync larger amounts of data should consider standing up their own backends or look into cloud storage solutions.

hanguokai commented 5 months ago

In the original issue, I updated for developers' own cloud service.

it's non-trivial for developers to create their own cloud synchronization service. This requires developers to: