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.