web: WEBGL_debug_renderer_info is deprecated in Firefox and will be removed

This issue has been tracked since 2021-09-11.

let driver_info = if gl.get_extension("WEBGL_debug_renderer_info").is_ok() {

This line causes Firefox to log a warning in the browser's console every time a file loads:
WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER.

So apparently instead of using:

var r = gl.getExtension("WEBGL_debug_renderer_info").UNMASKED_VENDOR_WEBGL;

we'd have to do this:

Now the info it returns seems pretty limited in most cases. For instance on my device:

WEBGL_debug_renderer_info returns "Google Inc.".
gl.RENDERER returns "ANGLE (Intel(R) HD Graphics 400 Direct3D11 vs_5_0 ps_5_0)".

WEBGL_debug_renderer_info returns "Google Inc. (Intel)".
gl.RENDERER returns "WebKit WebGL".

danielhjacobs wrote this answer on 2022-02-03

Apparently the info RENDERER returns being limited is by design. That said, there has been no word about when WEBGL_debug_renderer_info "will be removed", and MDN doesn't even say it's deprecated: https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info.

https://bugzilla.mozilla.org/show_bug.cgi?id=1715690: Original issue related to RENDERER, saying it exposes more info than necessary

https://bugzilla.mozilla.org/show_bug.cgi?id=1722113: Issue that disabled WEBGL_debug_renderer_info in nightly, which caused an issue

https://bugzilla.mozilla.org/show_bug.cgi?id=1722782: Issue that led to the current message, re-enabling WEBGL_debug_renderer_info but describing it as deprecated and stating it will be removed. The last comment on that issue notes that "The deprecation of WEBGL_debug_renderer_info is not documented on MDN"

danielhjacobs wrote this answer on 2022-02-14

Response about Firefox deprecation: https://bugzilla.mozilla.org/show_bug.cgi?id=1722782#c10

Considering RENDERER provides less useful info, I don't think replacing WEBGL_debug_renderer_info needs to be a priority until and unless a decision is made about whether or not to unship WEBGL_debug_renderer_info.

More Details About Repo
Owner Name ruffle-rs
Repo Name ruffle
Full Name ruffle-rs/ruffle
Language Rust
Created Date 2019-04-25
Updated Date 2022-08-15
Star Count 10381
Watcher Count 139
Fork Count 492
Issue Count 1888


Issue Title Created Date Updated Date