You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose the actual background error message in the options page #9767
changed the title [-]Expose background load failure error to options[/-][+]Expose the actual background error message in the options page[/+]on Jul 1, 2026
This appears to be impossible in service workers for many reasons:
import() not available, so no try/catch around it
errors cannot be preventDefault, so once it fails the service worker is unloaded
localStorage is not available in SW, so the SW fails before chrome.storage.session can save the error, assuming the global error handler is even called
It can be done via chrome.actions.setBadge because I did it for one client, but that involved webpack in order to make import() work.
So further exploration is needed but #9776 is a starting point
Activity
[-]Expose background load failure error to options[/-][+]Expose the actual background error message in the options page[/+]fregante commentedon Jul 4, 2026
This appears to be impossible in service workers for many reasons:
import()not available, so no try/catch around itpreventDefault, so once it fails the service worker is unloadedlocalStorageis not available in SW, so the SW fails beforechrome.storage.sessioncan save the error, assuming the globalerrorhandler is even calledIt can be done via
chrome.actions.setBadgebecause I did it for one client, but that involved webpack in order to makeimport()work.So further exploration is needed but #9776 is a starting point