Bug report: Downloadable version not working on Safari due to unavailable localStorage
See original GitHub issueSummary
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.
Possible solutions
CyberChef should load even when local storage is not available. I’m unsure if this is feasible.
Environment
Browser/OS: Safari 10.1.1 (12603.2.4) that is shipping with macOS 10.12.5 (latest)
- Version: 5.12.4
- Compile time: 03/08/2017 12:08:51 UTC
- User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Bug: Local and Sync storage merged since safari 15
Since Safari 15, the extensions local and sync storage seems to be merged into one. This means operations in local storage apply to...
Read more >Safari Problems After macOS Upgrade, How To Fix
Step 2 Check User Files ... If Restarting Safari did not solve your problem, the next step is to make sure that your...
Read more >html5 localStorage error with Safari ... - Stack Overflow
Local storage and session storage now work in Safari 10.1 and later. This fix affects normal Private Browsing mode and Automation mode (used...
Read more >Clear-Site-Data - HTTP - MDN Web Docs
If more data types are added in future versions of this header, ... Report problems with this compatibility data on GitHub ... SafariNo....
Read more >Access data offline | Firestore - Firebase
For the web, offline persistence is disabled by default. To enable persistence, call the enablePersistence method. Cloud Firestore's cache isn't automatically ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@MichalStaruch Thanks for the details, I’ll prioritise this more highly.
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.