Description of the issue:
It only works a few seconds after brave is launched. I tried troubleshooting by doing console.log of the detected WebGL, heres my output
Code:
//Get GL
const canvas = document.createElement(“canvas”);
const gl = canvas.getContext(“webgl”) || canvas.getContext(“experimental-webgl”);
if (!gl) {
console.error(“WebGL not supported or blocked by browser settings.”);
} else {
console.log(gl.getParameter(gl.VERSION));
console.log(gl.getParameter(gl.SHADING_LANGUAGE_VERSION));
console.log(gl.getParameter(gl.VENDOR));
}
Output #1 (First launched):
VM124:7 WebGL 1.0 (OpenGL ES 2.0 Chromium)
VM124:8 WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)
VM124:9 WebKit
Output #2 (After sometimes):
how-to-get-opengl-version-using-javascript:1 WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost
then i ran the code once again
VM191:5 WebGL not supported or blocked by browser settings. (anonymou@V@VM191191)@VM191:5 –> meaning const gl = canvas.getContext(“webgl”) || canvas.getContext(“experimental-webgl”); failed
Exact URL of the website in question:
All websites that uses WebGL/Three.js and also Figma Web.
Did the issue present with default Shields settings? (yes/no)
No
Does the site function as expected when Shields are turned off?
No
Is there a specific Shields configuration that causes the site to break? If so, tell us that configuration. (yes/no):
No
Does the site work as expected when using Chrome?
All Three.js and Figma Web are running smoothly
Brave version (check About Brave):
| Brave | 1.88.132 Chromium: 146.0.7680.80 (Official Build) (64-bit) |
|---|---|
| Revision | e9b295ae8099fc291539f1340d2975af7c935220 |
| OS | Linux |
| JavaScript | V8 14.6.650202 |
| User Agent | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36 |