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

[BUG] NS_ERROR_FILE_CORRUPTED causes fatal crash for window.localStorage.getItem #2202

Open
janderson-watchbox opened this issue Jan 14, 2025 · 1 comment
Labels
Acknowledged Team has responded to issue

Comments

@janderson-watchbox
Copy link

Summary

For calls to LocalStorage.get that use auth/storage/local.js, a browser NS_ERROR_FILE_CORRUPTED will cause a fatal crash of the site -- This requires users to manually delete/reset the local storage files on their computer for any access to the website

Expected result

Calls to window.localStorage and window.sessionStorage in any context should be wrapped in try{}catch{} to provide fallbacks when storage is corrupted or unavailable for any reason.

Example of Sentry error highlighting the line item that caused a fatal crash.

Screen Shot 2025-01-14 at 8 59 54 AM

@vcua-mobify
Copy link
Contributor

Hi @janderson-watchbox ,

Thanks for reporting this issue. I've opened a ticket in the team's backlog for this

@vcua-mobify vcua-mobify added the Acknowledged Team has responded to issue label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Acknowledged Team has responded to issue
Projects
None yet
Development

No branches or pull requests

2 participants