Open strrife opened 1 year ago
I ran into this also today.
We're observing the same behavior
+1
Just adding my +1 to this.
Defaulting permissions to "Blocked" and requiring the a user to delve into settings is pretty gross.
Surely using the "Ask" status by default (as per camera and location) is the most sensible option for this?
+1 to this. Checks like
if (!window.DeviceOrientationEvent) { // handle no support }
are not working as expected since DeviceOrientationEvent is valid and just returning unusable values.
Yep, still a problem.
Description
The
deviceorientation
event does not seem to work properly on Brave Android with default config. It gets fired once when the listener is added, but lacks any meaningful payload (you get nulls for alpha and other fields), no prompt suggesting to allow the sensor access is shown.I believe this behaviour was introduced here.
This starts to work when you enable Motion sensors under Settings > Site Settings > Motion Sensors.
I think it would make sense to make Sensors ask for a permission, like Geolocation, instead of failing silently on a clean browser config.
Steps to reproduce
Please consider this simple HTML:
It is available here.
Actual result
After clicking start, an event is sent once with
alpha
set tonull
. Here's an extremely non-informative screenshot of the orientation listener not working.Expected result
After clicking start, device orientation events are sent continuously, like in Brave iOS or Chrome (same device).
Issue reproduces how often
Easily reproduced
Version/Channel Information:
Device details
Brave version
1.50.121
Website problems only
Additional information
N/A