When I visit my https://notube.net site in private browsing, we can no longer click on the “OK” button. When I check the console, errors appear. This started a few days/weeks ago. My other similar site https://notube.lol (French version) doesn’t have the same problem, yet it’s exactly the same site, same code, only the language changes.
Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
main.js?ver=70:1 Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
youtube-app-169:484 Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
matomo.js:12 There was an error setting cookie `_pk_id.2.b650`. Please check domain and path.
ap @ matomo.js:12
dG @ matomo.js:33
aV @ matomo.js:42
cL @ matomo.js:47
cd @ matomo.js:48
(anonymous) @ matomo.js:64
cw @ matomo.js:52
U.trackPageView @ matomo.js:64
ak @ matomo.js:12
ai @ matomo.js:70
addTracker @ matomo.js:72
(anonymous) @ matomo.js:75
(anonymous) @ matomo.js:76
matomo.js:12 There was an error setting cookie `_pk_ses.2.b650`. Please check domain and path.
Stranger still, I even get a matomo error when I’m also using matomo on notube.lol, where I don’t get this error in private browsing.
@Multu14200 tested this on Android, macOS and Windows 11 and do not have any issues with this site, including the OK button in standard and private browsing mode.
Do you have any extensions installed in the browser at this time?
Visit the site, click the “tune” icon next to the URL, then Site settings --> Delete data to ensure all site data is cleared. Test again to see if this works.
On noTube.net (where there is a problem). The Javascript line is always displayed. Even after clearing the cache, cookies, resetting permissions and relaunching Brave.
Of course, clicking on Reset authorization doesn’t change anything and the Javascript line will still be displayed.
I’ve tried to create a new profile, and it’s OK in private browsing (also I no longer have the Javascript line on the new profile). The problem can therefore be considered to be linked to my profile, but I’m worried if it happens to other users. It’s happening on my 2 PCs (Windows 11).
I don’t know if I can pass on any other information or if it’s just a problem on my side.
I’ve just done a test with the Shield and managed to do something very strange. I activated the Shield in classic browsing mode, then went to private browsing on notube.net, deactivated the shield in private browsing mode, and the OK button worked. However, if I reactivate the Shield (still in private browsing) then it no longer works.
Either there’s a bug (but it’s astonishing because I’ve reproduced it on 2 devices), or there may be a rule on the Brave side that indicates that notube.net is suspicious and not to allow the use of localStorage/cookies in certain cases (which is at the root of the problem with the “OK” button?
It seems that in private browsing mode, the shield is automatically set to “Block all cookies”, which seems to be the root of the problem.
Out of curiosity, does using Enter instead of clicking OK still perform the search? I’m wondering if the search functionality is still working and it’s just the button itself that isn’t for some reason or if it’s the entire search feature.
Actually, this is silly and something I need to fix but for the button to work I need to use cookies/localStorage. Soon this will be fixed, but it won’t solve the problem I’m currently experiencing as even Matomo etc. no longer work.
Is it normal that in private browsing, the Shield is set to “Block all cookies”? If I set “Block third-party cookies” then it works, but if I close and restart private browsing, then it’s back to “Block all cookies”.
If you switch a site to “Block all cookies”, in normal browsing, and then switch back to “Block third-party cookies”, then in private browsing, it will ALWAYS remain in “Block all cookies”, even if you’ve previously switched back to “Block third-party cookies”, in normal browsing.
Even deleting data from the site isn’t enough. It seems that you need to delete the entire profile.
Actually scratch that – that does not appear to be intentional. On my end, I see the same behavior in Brave stable on macOS but not in Beta or Nightly. On Windows, the Private window Shields reflects the default setting as well.
Will do some digging on this.
EDIT:
Apologies – I was wrong about this. I used the wrong site to check. If you change the Shields settings in the Shields panel in a standard window, those settings will be reflected in the Shields panel in a Private window, which may be why you’re seeing what you’re seeing.
You can test this by going to brave.com in a standard window and changing the Shields settings in the panel – set it to Block all cookies. If you then open a Private window, you’ll see that the settings match. But if you go to a different site, the Shields panel settings will match whatever the default Shields are set to.
“If you change the Shields settings in the Shields panel in a standard window, those settings will be reflected in the Shields panel in a Private window”
Not on my side, well yes but partially. Try this:
Go to https://brave.com in normal browsing mode. By default, the Shield is set to “Block third-party cookies”.
Set it to “Block all cookies”. (normal browsing)
Switch it back to “Block third-party cookies” (normal browsing).
Open the same https://brave.com page in private browsing mode. You’ll be in “Block all cookies”.
In fact, you can block all cookies, and it updates in private browsing. On the other hand, it’s permanent on your profile: you won’t be able to switch back to “Block third-party cookies” in private browsing.
At first I thought it was a problem specific to my site, but it happens with any site.
I tried it on 2 Windows and 1 Macbook pro
There are some BB Settings (changes) for which, BB must be thoroughly Exited/Quit, and that may include a complete Restart of the computing device - after changing a setting.
A complete Restart of the computing device - that is hand-held / mobile, may sometimes be referred to as a “forced” or “hard” Restart (that may include a Shut Down and waiting period ← sometimes for at least 30 seconds).
A complete, full exit / quit of the mobile computing device <-- following the instructions of the device manufacturers:
In addition, sometimes BB must not be the computing device’s default Internet browser - for the duration of making the settings changes.
Extra precautions, when settings changes are stubborn, I would disable the “Continue where you left off” setting, and disable the “Forget me when I close this site” setting, and in a BB New Window, go to the “On exit” tab at brave://settings/clearBrowserData ← make sure that you are not clearing BB settings on exit.
@Multu14200 yeah I see what you’re talking about here. Not exactly sure what is happening, going to bring this up with our Shields team. Thank you for pointing this out.