Skip to content

Boot error if Web Storage is disabled #111

@noyainrain

Description

@noyainrain

The app fails to boot if Web Storage is disabled. To reproduce in Firefox:

  1. In about:config set dom.storage.enabled to false
  2. Open Hello and observe:
TypeError: localStorage is null index.js:208:25
    createdCallback http://localhost:8090/static/node_modules/@noyainrain/micro/index.js?v=8bd6276d9e4845a700f2af9ee6525deb:208
    i http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:12
    n http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:12
    t http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:12
    n http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:11
    o http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:11
    t http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:11
    n http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:11
    n http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:11
    t http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:11
    o http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:11
    t http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:11
    v http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:12
    i http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:11
    r http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:11
    w http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:12
    t http://localhost:8090/static/node_modules/webcomponents.js/webcomponents-lite.min.js?v=32b5a9b7ada86304bec6b43d3f2194f0:12
    <anonymous> http://localhost:8090/static/hello.js?v=a152b87bc64c392fa0ea88f982ebff6d:110

For other browsers, the error messages are:

  • Chrome: DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
  • Safari: TypeError: null is not an object (evaluating 'localStorage.microVersion')

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions