Closed Bug 1897537 Opened 1 year ago Closed 1 year ago

WebGL Renderer Info returns wrong graphics card name

Categories

(Core :: Graphics: CanvasWebGL, defect)

Firefox 126
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: damil, Unassigned)

Details

Steps to reproduce:

const gl = document.createElement('canvas').getContext('webgl');
const debugInfo = gl.getExtension('WEBGL_debug_renderer_info');
const vendor = gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL);
const renderer = gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL);
console.log(vendor, renderer);

or (same result)

const canvas = document.createElement('canvas');
const gl = canvas.getContext('webgl');
console.log(gl.getParameter(gl.RENDERER))

Actual results:

Returns GTX 980, but I have RTX 2070.

Expected results:

Return RTX 2070 like e.g. Chrome does.

Summary: WEBGL_debug_renderer_info UNMASKED_RENDERER_WEBGL returns wrong name → WebGL Renderer Info returns wrong graphic card name
Summary: WebGL Renderer Info returns wrong graphic card name → WebGL Renderer Info returns wrong graphics card name

Btw. for WEBGL_debug_renderer_info I get a deprecated warning in Firefox and will be removed. Please use RENDERER.
RENDERER currently returns the same in Firefox as the deprecated one. But in Chrome it only returns: "WebKit WebGL"
Are you sure to set this deprecated? It's not possible to get the graphics card name. Is this intended? Mabye for privacy protection?

Background: I want to get the graphics card name for support reasons. For example, if someone reports a bug. But yes. Such information can be used for profiling, which should be avoided. Is there a plan or statement of this information in w3c or other?

The Bugbug bot thinks this bug should belong to the 'Core::JavaScript Engine' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → JavaScript Engine
Product: Firefox → Core
Component: JavaScript Engine → Graphics
Component: Graphics → Graphics: CanvasWebGL

Kelsey, can you comment to the bug?

Flags: needinfo?(jgilbert)
Severity: -- → S3

(In reply to damil from comment #2)

Background: I want to get the graphics card name for support reasons. For example, if someone reports a bug. But yes. Such information can be used for profiling, which should be avoided. Is there a plan or statement of this information in w3c or other?

We bucket graphics cards into representative groups, which is now more visible since bug 1826040 added ", or similar" to the returned name.
For automated support reports, we believe that the graphics card we return here is representative of the true hidden-for-privacy gpu in the user's system.
For more detailed support reports, we recommend that you do what we do for ours, and ask for the user's about:support.

Flags: needinfo?(jgilbert)
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.