Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service worker fails to load after disabling and re-enabling the extension #39

Open
g-sam opened this issue Aug 29, 2023 · 1 comment
Open

Comments

@g-sam
Copy link

g-sam commented Aug 29, 2023

In my Manifest v3 extension, rapidly unticking and re-ticking the checkbox to disable/re-enable the extension causes a permanent failure to load the service worker.

I was able to stop this happening by removing my onInstalled handler. Reducing the number of async functions in this handler made it less likely to occur. I'd speculate the crash occurs when the extension is disabled before that handler has finished running.

When the handler included calls to browser.storage.local I would occasionally see the following error message logged by the service worker:

Unhandled Promise Rejection: Error: disk I/O error: disk I/O error: SELECT SUM(LENGTH(key) + LENGTH(value)) FROM extension_storage

Tested with Safari 16.4, 17 Beta, MacOS Ventura

@xeenon
Copy link

xeenon commented Apr 16, 2024

Is this any better in Safari Technology Preview 192?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants