I'm very new to Android development so I apologise in advance if I'm missing something well-understood.
On a stock GrapheneOS running on a Pixel 9, a web app that tries to use WebGLRenderingContext.getExtension("OES_texture_float") returns null instead of the expected object, but only in a WebView - it works correctly in the Vanadium browser.
My test web page (deployed on a valid HTTPS endpoint):
<html>
<head>
<script>
window.addEventListener("load", () => {
const canv = document.getElementById("canv");
const gl = canv.getContext("webgl");
//window.alert(gl);
const ext = gl.getExtension("OES_texture_float");
//window.alert(ext);
document.body.innerText = String(ext);
});
</script>
</head>
<body>
<canvas id="canv" width="100" height="100"></canvas>
</body>
</html>
I'm using AndroidView and WebView from androidx.compose.ui.viewinterop.AndroidView. If necessary I can strip my app down to a test case, but I was first wondering if there is a known issue with this configuration or some security measure I need to work around.
The system WebView is reported in developer settings as Vanadium System WebView 150.0.7871.63.1
Thanks
I'm very new to Android development so I apologise in advance if I'm missing something well-understood.
On a stock GrapheneOS running on a Pixel 9, a web app that tries to use
WebGLRenderingContext.getExtension("OES_texture_float")returns null instead of the expected object, but only in a WebView - it works correctly in the Vanadium browser.My test web page (deployed on a valid HTTPS endpoint):
I'm using AndroidView and WebView from androidx.compose.ui.viewinterop.AndroidView. If necessary I can strip my app down to a test case, but I was first wondering if there is a known issue with this configuration or some security measure I need to work around.
The system WebView is reported in developer settings as Vanadium System WebView 150.0.7871.63.1
Thanks