Location Services with javascript are not working in Brave

Description of the issue:
Geolocation services not available to web pages using javascript.

Steps to Reproduce (add as many as necessary): 1. 2. 3.

I saw other topics about this that were dismissed so i found an online test that is consistent and simple:

and

the second link will actually show the error being triggered

This occurs in in normal and private windows in a clean profile.

Actual Result (gifs and screenshots are welcome!):

The permission popup occurs. i allow. (the timeframe doesn’t matter)

navigator.geolocation gives a true result when called in javascript
if no error handling, there is no errors or indicators showing that navigator.geolocation.getCurrentPosition fails.

if the error is caught “POSITION_UNAVAILABLE” is the result.

Expected result:
Shows your Latitude and Longitude

works in chrome Version 131.0.6778.140 (Official Build) (64-bit)

Reproduces how often:
every time

Operating System and Brave Version(See the About Brave page in the main menu):
Windows 10
Brave Version 1.73.101 Chromium: 131.0.6778.139 (Official Build) (64-bit)

Additional Information:

Google maps in Brave will accurately geolocate my area

edit: added more detailed info

@glypher,
This is working for me on both macOS and Windows 10 systems. Strange that Google Maps geo location works but the w3schools site does not.

Do you have any custom Shields settings configured for w3schools?

no i dont have any custom shields. like i said, new profile. i only discovered this because i was doing a custom website with geolocation using these techniques.

other sites that break:
https://mylocation.org/ -Browser geolocation test
https://www.gps-coordinates.net/my-location
https://gps-coordinates.org/my-location.php

basically any site that uses browser based geolocation.

again, this DOES work in my chrome browser and in firefox.

Now that im thinking about it, Google is probably using IP based Location, since it does not ask for browser location permissions.

NOTE: i know in firefox there are are super-advanced settings: “about:config” → geo.enabled [true/false]. which if set to false in firefox, mimics the Brave behavior.

I’m not sure if there are high-level settings i could check?

I’ll need to take a look over in the next few days, seems to a be regression

just curious if there are any suggestions