Open BenMuschol-at opened 11 months ago
This is a vital change for our use-case as well.
In Firefox 119 set the browser privacy to "Custom" and set blocked "Cookies" to "All cross-site cookies".
Embed the filestack-code in a website that is then embedded in an iFrame on a different domain. Now accessing the localStorage will fail with error "Error: Failed to read the 'localStorage' property from 'Window': Access is denied for this document" or similar.
🐛 Bug fix
window.localStorage
crashes in an iframe with anAccess Denied
error. The code is already resilient tolocalStorage
not existing, it's just not resilient tolocalStorage
throwing an error. This PR includes a minor code structure change so that it handles this case.Does not crash in iframes, properly falls back to other storage