Skip to content

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Oct 17, 2025

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

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

X-original-commit: 39449c2
@robodoo
Copy link
Contributor

robodoo commented Oct 17, 2025

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Oct 17, 2025

This PR targets saas-18.3 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Oct 17, 2025
robodoo pushed a commit that referenced this pull request Oct 20, 2025
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

closes #232078

X-original-commit: 39449c2
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
@robodoo robodoo closed this Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

forwardport This PR was created by @fw-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants