Skip to content

Failed to read the 'localStorage' property from 'Window': Access is denied for this document. #1022

@sni

Description

@sni

Expected and Actual Behavior

Getting the error: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
when opening an iframed page using fancytree.
I am not even enabling or using the persitance plugin, its just bundled within the all-deps.js file.

Chrome dev tools clearly show the origin of the error is here:

localStorageStore = window.localStorage

Steps to Reproduce the Problem

  1. use fancytree in an iframe over different domains
  2. make sure the "block third party..." setting is enabled in chrome (https://www.chromium.org/for-testers/bug-reporting-guidelines/uncaught-securityerror-failed-to-read-the-localstorage-property-from-window-access-is-denied-for-this-document) But as far as i can see, this is the default.

Environment

  • Browser type and version: Version 83.0.4103.116 (Developer Build) built on Debian bullseye/sid, running on Debian bullseye/sid (64-bit)
  • jQuery and jQuery UI versions: bundled with fancytree
  • Fancytree version: fancytree-2.36.1/jquery.fancytree-all-deps.min.js

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions