Error: Invalid call to browser.storage.local.set(). Disk I/O error.

Hi, after upgrading MacOS (MB Air M1 Version 26.2 (25C56)) & Safari (Version 26.2 (21623.1.14.11.9)) to latest versions, we are experiencing a new bug occurring with our web extension (Click & Read) on local storage writing and getting this error :

Invalid call to browser.storage.local.set(). Disk I/O error.

This doesn't happen on other browsers (chromium, Firefox).

export const setLocalStorage = async (value: object) => {
  try {
    await browser.storage.local.set(value);
  } catch (error) {
    console.error("[Click & Read] Error setting local storage", error);
  }
};

I have the same error when using browser.storage.local.set() in my safari web extension. Have you found a fix/workaround?

Well, after having upgraded macOS and Safari to latest versions, and tested again our extension from the AppStore, I still have this problem :-/

I don't understand, If I disable and enable the add-on, it's working back and no more errors...

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project and some directions that can be used to reproduce the problem, and post the Feedback number here once you do. I'll check the status next time I do a sweep of forums posts where I've suggested bug reports and post any information about changes I am able to share to this thread.

Bug Reporting: How and Why? has tips on creating your bug report.

BTW, questions about Safari web addon local storage:

  • when a the addon is uninstalled, does its "browser.local.storage" get cleaned or remains (It is cleaned on Chrome/Firefox) ?

  • It seems the safari web inspector doesn't show the local storage content in Storage tab (readable only with command in console). Must we activate it somehow ?

Error: Invalid call to browser.storage.local.set(). Disk I/O error.
 
 
Q