Skip to content

Compat Mode: Checking for "sessionStorage" reference crashes the app when chrome has "block third-party cookies" enabled #5913

@rosostolato

Description

@rosostolato

The same as #5618 but it's still broken for compat mode.

If customers enable the "block third-party cookies" feature under chrome settings, Chrome will throw an exception when you try to access the sessionStorage reference in window. To solve that, we should add a try/catch for all lines that reference sessionStorage and not only check if it's null.

if (!win?.sessionStorage) {

DOMException: Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document.
Unhandled Promise rejection: The user denied permission to access the database. ; Zone: <root> ; Task: Promise.then ; Value: The user denied permission to access the database.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions