Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Allow IndexedDB cleanup operations to fail #9903

Closed
wants to merge 1 commit into from

Commits on Jan 12, 2023

  1. Allow IndexedDB cleanup operations to fail

    Firefox ships with a preference (`dom.indexedDB.privateBrowsing.enabled`) which
    causes `window.indexedDB` to fail on all requests including `deleteDatabase`.
    Because of that, Firefox Private Browsing users are left with an infinite
    loading spinner.
    
    `MatrixClient#clearStores` will resolve to a rejected promise if any of its
    operations fails, which seems correct -- it's unable to complete its tasks.
    So, to keep from erroring out during initialization, the errors have to be
    discarded during the lifecycle operations.
    
    Signed-off-by: Clark Fischer <[email protected]>
    clarkf committed Jan 12, 2023
    Configuration menu
    Copy the full SHA
    5e3a39c View commit details
    Browse the repository at this point in the history