Bug 246622 - Local and Sync storage merged since safari 15
Summary: Local and Sync storage merged since safari 15
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Extensions (show other bugs)
Version: Safari 15
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-10-17 05:04 PDT by Carlos J.
Modified: 2022-10-25 09:18 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos J. 2022-10-17 05:04:16 PDT
Since Safari 15, the extensions local and sync storage seems to be merged into one. This means operations in local storage apply to sync storage and the reverse. This caused the users of of my extensions with more than half a million of downloads to loose all their user settings. To keep compatibility across browsers, the sync and local storage should be separated.

A sample extension can be found via this link:
https://github.com/carlosjeurissen/webext-tech-demo-extensions/tree/main/issues/safari-9723963-merged-sync-and-local-storage
Comment 2 Alexey Proskuryakov 2022-10-17 10:21:49 PDT
Thank you for the report! This is not a WebKit issue, but a Safari one. Apple will continue to track it internally.

rdar://84214292
Comment 3 Timothy Hatcher 2022-10-24 13:27:53 PDT
We are tracking bugs in Bugzilla for Web Extensions now as we move extensions support from Safari to WebKit.

But this was resolved in Safari 15.2. MDN has a note.
Comment 4 Carlos J. 2022-10-25 03:12:22 PDT
Thanks for fixing! Where is the note in MDN? Can't seem to find it.
Comment 5 Timothy Hatcher 2022-10-25 09:18:44 PDT
Click on "15" in the "Safari on iOS" column in the table at the bottom of https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/sync

"Safari 15 and 15.1 erroneously store sync items in the local storage area. If unable to locate sync items, check for sync items in the local storage area and do a one-time migration to the sync storage area."