The downloadable cyberchef.htm page does not load when local storage is not available. Unfortunately, Safari on Mac does not seem to support local storage for offline files. I get the following error in the JS console:
[Error] SecurityError (DOM Exception 18): The operation is insecure.
loadLocalStorage (cyberchef.htm:101:1316857)
setup (cyberchef.htm:101:1313376)
e (cyberchef.htm:101:959968)
and CyberChef just remains at the loading screen and never loads. This is with regular browsing mode, not private browsing. The same downloaded file works fine in Chrome.
CyberChef should load even when local storage is not available. I'm unsure if this is feasible.
Browser/OS: Safari 10.1.1 (12603.2.4) that is shipping with macOS 10.12.5 (latest)
I'm not sure how we can solve this. Safari isn't one of our offically supported browsers so I can't advise you much further than that.
@artemisbot I see, thanks for the hint. I guess we can close this issue as wontfix then.
Whilst Safari isn't an officially supported browser, this does seem like something that should be fixed. LocalStorage is used to store saved recipes, user options and favourites. Fundamentally the app should still be able to function without these things. If Safari is blocking localStorage for local files, it's possible that other browsers will make the same decision in future.
I'm re-opening this issue as I feel it's something we should at least take a look at to see how much work it would entail. It might be a really quick fix, or it might be impractical.
Thanks for raising the issue and the detailed description of the problem.
Similar problem can be observed on Chrome 61 (which is supported browser) with enabled "Block third-party cookies" option in Content Settings -> Cookies. Launching cyberchef.html from local filesystem results then in cyberchef.htm:101 throwing:
Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
at p.loadLocalStorage (file:///C:/utils/cc/cyberchef.htm:101:1445128)
at p.setup (file:///C:/utils/cc/cyberchef.htm:101:1441605)
at HTMLDocument.e (file:///C:/utils/cc/cyberchef.htm:101:1107206)
and never-ending loading animation.
Chrome 61.0.3163.79, CyberChef 5.19.3.
@MichalStaruch Thanks for the details, I'll prioritise this more highly.
This should be fixed now. Let me know if it's still causing problems.
@n1474335 Works fine in v6.0.2. Thanks!