HTML5 localStorage

When trying to use the localStorage feature of HTML5 with Brave, it fails to function properly, resulting in error message “Uncaught DOMException: Failed to read the ‘localStorage’ property from ‘Window’: Access is denied for this document.”
The same code runs without issue on Firefox, Chrome, Opera and Safari, but fails on Brave.
Is there some setting I need to change?

In case it matters, the file is run locally, on user’s desktop, hence is accessed via file:///C:/maintenance/sub4/rackstatus.html

Any help/advice greatly appreciated.
Thank you!

1 Like

Chrome broke localstorage recently. https://www.androidpolice.com/2019/12/17/google-fixes-chrome-bug-that-broke-local-storage-for-some-web-and-android-apps-no-data-is-lost/

Just tested Chrome (Version 79.0.3945.88 (Official Build) (64-bit) on this page: https://jsfiddle.net/6sm54/2/ still affected. When Chromium builds update for Brave, it should be fixed.

/edit: Also Enabling “Allow all cookies” in Shields may also help

1 Like

Thank you for the information, I appreciate your time.
Don’t want to “Allow all cookies”, so will wait for an update to fix the issue.
Thanks again!

Today is 20 January 2020, and Brave Browser has upgraded to version 1.2.43 Chromium: 79.0.3945.130 – but “localStorage” still only works via HTTP connection. I have checked other Chrome-based browsers, and they all work for local storage (no HTTP connection required).
Is this issue a design feature, or is it an oversight on the part of Brave?
Thanks in advance for any advice offered.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.