Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER #47

Open
i-santosh opened this issue Apr 27, 2024 · 2 comments
Assignees

Comments

@i-santosh
Copy link

function getVideoCard(): componentInterface | string {
const canvas = document.createElement('canvas')
const gl = canvas.getContext('webgl') ?? canvas.getContext('experimental-webgl')
if (gl && 'getParameter' in gl) {
const debugInfo = gl.getExtension("WEBGL_debug_renderer_info");
return {
vendor: (gl.getParameter(gl.VENDOR) || '').toString(),
vendorUnmasked: debugInfo ? (gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL) || '').toString() : '',
renderer: (gl.getParameter(gl.RENDERER) || '').toString(),
rendererUnmasked: debugInfo ? (gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL) || '').toString() : '',
version: (gl.getParameter(gl.VERSION) || '').toString(),
shadingLanguageVersion: (gl.getParameter(gl.SHADING_LANGUAGE_VERSION) || '').toString(),
}
}
return "undefined"
}

while using thumbmarkjs, Firefox is giving warning WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER

@Joe12387
Copy link

Hi.

This warning has been present in Firefox for years. WEBGL_debug_renderer_info provides very useful data for fingerprinting, and until Mozilla actually removes this feature, it can safely be ignored in my opinion. However, given the code you've pasted, I would suggest wrapping the debugInfo declaration in a try catch in case Firefox or another browser removes this feature in the future.

Thanks.

@ilkkapeltola
Copy link
Collaborator

Yeah good point. I'll do this at some point.

@ilkkapeltola ilkkapeltola self-assigned this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants