odoo/odoo#232078

Created by fw-bot
Merged at 1eb783cd09b18e93dca74ef5d5d67e50db5798af

Statuses:

label
odoo-dev:saas-18.3-17.0-prevent-traceback-when-webgl-disabled-seba-471109-fw
head
6e4a73fe688534cabe0c8040fe78f873ad0a9bc2
merged
2 days ago by Website, Serge Bayet (seba)
odoo/odoo
17.0 #229705
18.0 #231705
saas-18.2 #232009
saas-18.3 #232078
saas-18.4 #232096
19.0 #232109
master #232451

[IMP] web_editor: disable image filters when WebGL missing

On recent versions of Chrome for Linux (v140+), the old SwiftShader software fallback for WebGL has been removed. As a result, new window.WebGLImageFilter() now throws if no GPU context is available, typically when WebGL is disabled or unsupported.

Since the application cannot enable WebGL from JavaScript, this commit improves the user experience by detecting the absence of a WebGL context early and disabling image filters in edit mode. Instead of raising a traceback, the editor now skips the filter feature and can optionally display a friendly message explaining that WebGL is required to use image filters.

This avoids runtime errors and ensures a more robust behavior on platforms where WebGL is unavailable.

task-5117584

Forward-Port-Of: #232009
Forward-Port-Of: #229705