Skip to content

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

@janderson-watchbox

Description

@janderson-watchbox

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    AcknowledgedTeam has responded to issue

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions