Skip to content

Direct access to localStorage in @snowplow/browser-tracker-core might break an app #1419

@valeriobelli

Description

@valeriobelli

Describe the bug
Browser Tracker Core tries to access the window.localStorage directly (example 1, example 2). Although this behavior can be deactivated using the useLocalStorage property; it's not straightforward that a developer might do it, for example, using the detector localStorageAccessible. This means that a bug can sneak into production builds.

To Reproduce
We can use Firefox to reproduce it manually by opening the about:config tab and deactivating the dom.storage.enabled option.

Expected behavior
Snowplow Browser Tracker should not break the app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:defectBugs or weaknesses. The issue has to contain steps to reproduce.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions