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

fix: WebGL console warning in Chrome 121 and Safari 17.4 #983

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

Finesse
Copy link
Member

@Finesse Finesse commented Jan 26, 2024

This remove an unwanted console message arising in:

  • Blink (Chrome) 121: webgl.ts:139 WebGL: this extension has very low support on mobile devices; do not rely on it for rendering effects: WEBGL_polygon_mode
  • WebKit (Safari) 17.4: WebGL: non-portable extension enabled: WEBGL_polygon_mode

The PR disables the WEBGL_polygon_mode extension, but this is not a fingerprint-breaking change, because the extension didn't exist in the previous versions. Though the browser updates change the fingerprint because of other changes to WebGL.

@Finesse Finesse self-assigned this Jan 26, 2024
@@ -132,7 +133,8 @@ export function getWebGlExtensions({ cache }: Options): WebGlExtensionsPayload |
// Extension parameters
if (extensions) {
for (const name of extensions) {
if (name === rendererInfoExtensionName && shouldAvoidDebugRendererInfo()) {
// The "polygon mode" extension causes a console warning in Chromium and WebKit
Copy link
Member Author

@Finesse Finesse Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Firefox emits no warning because it doesn't support WEBGL_polygon_mode yet (even the nightly 124 version). So I don't turn it off in Firefox until we know how it behaves.

Because Gecko doesn't support the extension yet, so we don't know whether it will emit a warning
@Finesse Finesse merged commit cb7a904 into master Jan 29, 2024
2 of 3 checks passed
@Finesse Finesse deleted the fix/webgl-console-warning branch January 29, 2024 04:53
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

Successfully merging this pull request may close these issues.

None yet

2 participants