Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't used in hosted chromium: Failed to read the 'sessionStorage' property #968

Closed
DakotaHoosier opened this issue Jun 21, 2019 · 4 comments
Labels

Comments

@DakotaHoosier
Copy link

Description: I'm providing HTML to be used in an HTML control (Chromium).

Environment Details: Win 10, chromium

  • formBuilder Version: 3.2.4
  • Browser: Chrome, 63.0.3239.132
  • OS: Win 10

Expected Behavior

Basic Example form loads

Actual Behavior

Error message:
form-builder.min.js:19 DOMException: Failed to read the 'sessionStorage' property from 'Window': Storage is disabled inside 'data:' URLs.
at e.t.orderFields (https://formbuilder.online/assets/js/form-builder.min.js:19:101889)
at e.t.appendControls (https://formbuilder.online/assets/js/form-builder.min.js:19:102478)
at e.t.init (https://formbuilder.online/assets/js/form-builder.min.js:19:100707)
at new e (https://formbuilder.online/assets/js/form-builder.min.js:19:100631)
at new A (https://formbuilder.online/assets/js/form-builder.min.js:19:103157)
at HTMLDivElement. (https://formbuilder.online/assets/js/form-builder.min.js:19:125187)
at Function.each (https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js:2:2882)
at n.fn.init.each (https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js:2:847)
at https://formbuilder.online/assets/js/form-builder.min.js:19:125164
at

Steps to Reproduce

I've taken the simplest example that loads fine in Chrome browser on this machine, but when I'm in the hosted chromium control, I get the error in this issue.
I'm using the code in this page to get started: https://kevinchappell.github.io/formBuilder/

Screenshot - (optional)

@kevinchappell
Copy link
Owner

can you share the code used to reproduce this error?

@DakotaHoosier
Copy link
Author

The HTML was https://kevinchappell.github.io/formBuilder/
The issue is how the Chromium component is hosted in that it doesn't provide session/local storage it appears. This is an in-house closed-source app I'm using. I may be able to rig a prototype that would demonstrate the problem. I'm not sure sessionStorage is needed in this case. If not, is there some defensive coding that can catch the exception?

@kevinchappell
Copy link
Owner

Can you enable sessionStorage? The only place in formBuilder that doesn't check for sessionStorage is in the demo.js, all other use looks like this.

if (window.sessionStorage) {

@lucasnetau
Copy link
Collaborator

This was fixed in #1329 and released in version v3.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants