question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

#12483 does not solve the problem for chrome on iOS

See original GitHub issue

https://github.com/BabylonJS/Babylon.js/pull/12483

Both Chrome and Safari seem to be suffering from the problem with webgl2 and antialiasing. And It’s probably not limited to these two. since as I understand it iOS and iPadOS do not support other browsers, instead the browsers are simply wrappers around the WebKitView Engine.

Therefor we need to take into account many more userAgent strings.

Here are the different user agent strings for iOS and iPadOS for both chrome and safari for reference.


// iOS 15.4.1 Chrome 101
Mozilla/5.0 (iPhone; CPU iPhone OS 15_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/101.0.4951.44 Mobile/15E148 Safari/604.1
// iOS 15.4.1 Safari 15.4.1
Mozilla/5.0 (iPhone; CPU iPhone OS 15_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1

// iPadOS 15.4.1 Chrome 101
Mozilla/5.0 (iPad; CPU OS 15_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/101.0.4951.44 Mobile/15E148 Safari/604.1
// iPadOS 15.4.1 Safari 15.4.1
Mozilla/5.0 (iPad; CPU OS 15_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15H321 Safari/604.1

The problem lies with that the userAgent string for chrome looks different and does not match the regex we currently have.

Solution

I would suggest we do the match against the first part of the string instead since that looks the same in both and do an extra check that the engine is AppleWebKit.

also we don’t need the /g flag since we are only looking for the first occurrence of the regex.

const fixYourBugsAlreadyRegexp = /OS\s(\d\d)_(\d).+AppleWebKit/;

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
RaananWcommented, May 10, 2022

got it! just saw the version signature, sorry. I’ll run a few tests on desktop OSX as well just to be sure. thanks

0reactions
RaananWcommented, May 11, 2022

Ok, some desktop devices are affected by this issue. I’ll have to merge the two. will take care of that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix Chrome if it crashes or won't open - iPhone & iPad
There could be something wrong with your Chrome profile that's causing problems. Uninstall Chrome and make sure to check the box to delete...
Read more >
Top 7 Ways to Fix Google Chrome Not Working on iPhone
Step 1: Open Chrome on your iPhone. Tap the three-dot menu icon to visit Settings. Step 2: Go to Privacy and select Clear...
Read more >
206727 - Updating CMake from 2.6.4 to 2.8.4r1 - Monorail
I would like to update the CMake in chroot from 2.6.4 to 2.8.4r1 (stable release). I need to install a library (OpenCV) that...
Read more >
Links not working on Google Chrome in iOS 15.0.2
Any ideas on how to fix this or is it likely a bug that Chrome will fix? I have not seen any other...
Read more >
Release Notes for Cisco Catalyst IE3x00 Rugged, IE3400 ...
New Features for Cisco Catalyst IE and ESS Switches in Cisco IOS XE 17.5.x ... Enabling/disabling this feature will not have any impact...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found