Shields setting and local files

Hi,

I am working on a project, building a drag and drop website builder contained in a html page.
When I open the page in brave with my normal settings I get a blank page and an error:

LocalStorage.js:55 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
    at r.checkStorageEnvironment (file:///home/$USER/development/portable-grapesjs/node_modules/grapesjs/dist/grapes.min.js:12:205638)
    at r.load (file:///home/$USER/development/portable-grapesjs/node_modules/grapesjs/dist/grapes.min.js:12:205319)
    at Object.load (file:///home/$USER/development/portable-grapesjs/node_modules/grapesjs/dist/grapes.min.js:12:209727)
    at r.getCacheLoad (file:///home/$USER/development/portable-grapesjs/node_modules/grapesjs/dist/grapes.min.js:12:96937)
    at r.load (file:///home/$USER/development/portable-grapesjs/node_modules/grapesjs/dist/grapes.min.js:12:96546)
    at r.loadOnStart (file:///home/$USER/development/portable-grapesjs/node_modules/grapesjs/dist/grapes.min.js:12:92300)
    at Object.init (file:///home/$USER/development/portable-
grapesjs/node_modules/grapesjs/dist/grapes.min.js:12:105408)
    at file:///home/$USER/development/portable-grapesjs/index.html:37:clock1030: 

when I disable “Block cross-site trackers” and allow cross site cookies it works as expected.
I want to set my shield settings for that project as mentioned above so that it runs properly but not for all site.
The shield icon doesn’t work (It says in other tutorial to go to a site and use the lion icon to change per-site shield setting) but when working on local site the lion icon isn’t working.

My files open properly in google and firefo. The issue seem to be specific to brave browser.

Steps to Reproduce (add as many as necessary):

  1. Open a local file in brave
  2. try to click on the shield lion icon
  3. nothing happens.

(for the local storage issue)

  1. Create a html projects that require localstorage acces
  2. launch it in brave
  3. check console

Actual Result (gifs and screenshots are welcome!):

Expected result:

Operating System and Brave Version(See the About Brave page in the main menu):
Ubuntu 18.04
brave browser iinfos:
brave-version

Additional Information:
It would be great to be able to manage the brave shield and other settings when working with local files.

I will add that this would be great for non-developers as well. The behavior is the same on Windows, and this breaks the Cisco Registered Envelope Service - it used a cross-site cookie in a local file to validate that you have an account (to open encrypted email) - but it is a local file.

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