From 090efe3b5b88a73ccdafa06c36754a464e5e287d Mon Sep 17 00:00:00 2001 From: Will Eastcott Date: Sat, 29 Aug 2026 00:17:17 +0100 Subject: [PATCH] Anchor the AppleWebKit 15.4 antialias workaround UA match '15.4' matched anywhere in the UA, and every Chromium UA contains 'AppleWebKit', so unrelated version tokens (e.g. a Chrome build number or patch version) could force-disable antialiasing. Match the anchored Safari tokens Version/15.4 and OS 15_4 instead, which still cover desktop Safari 15.4/15.4.1 and all iOS 15.4 WebKit browsers. Fixes #9259. Co-Authored-By: Claude Fable 5 --- src/platform/graphics/webgl/webgl-graphics-device.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/graphics/webgl/webgl-graphics-device.js b/src/platform/graphics/webgl/webgl-graphics-device.js index 53880e47464..879e9b5579e 100644 --- a/src/platform/graphics/webgl/webgl-graphics-device.js +++ b/src/platform/graphics/webgl/webgl-graphics-device.js @@ -202,7 +202,7 @@ class WebglGraphicsDevice extends GraphicsDevice { // #4136 - turn off antialiasing on AppleWebKit browsers 15.4 const ua = (typeof navigator !== 'undefined') && navigator.userAgent; - this.forceDisableMultisampling = ua && ua.includes('AppleWebKit') && (ua.includes('15.4') || ua.includes('15_4')); + this.forceDisableMultisampling = ua && ua.includes('AppleWebKit') && (ua.includes('Version/15.4') || ua.includes('OS 15_4')); if (this.forceDisableMultisampling) { options.antialias = false; Debug.log('Antialiasing has been turned off due to rendering issues on AppleWebKit 15.4');