Skip to content

Vanadium WebView on GrapheneOS does not support WebGL extension OES_texture_float but Vanadium browser does #1185

Description

@alexweej

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions