odoo/odoo#232096

Created by fw-bot
Merged at c943a882624900743f02719560b70a0a683f095a

Statuses:

label
odoo-dev:saas-18.4-17.0-prevent-traceback-when-webgl-disabled-seba-471217-fw
head
d73d31f1528db709dfade53a5d5f9d2891f74037
merged
3 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