Set the device-phone CSS class also for Firefox on Android to (hopefully) avoid or decrease large layout shifts.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent/Firefox
Closes T16071
Differential D26021
Make User-Agent regex detect Firefox on Android aklapper on Fri, May 16, 13:19. Authored by
Details
Set the device-phone CSS class also for Firefox on Android to (hopefully) avoid or decrease large layout shifts. Closes T16071 Check if the given regex matches User-Agent strings.
Diff Detail
Event Timeline
Comment Actions
I prefer that more specific regex as you never know which completely random user-agent strings are out there. It's consistent with the Chrome pattern.
Comment Actions There is something wrong now nearby the |((Chrome, that should be enclosed by pipes and just one bracket, like an hamburger of pipes, like @stuff|(Chromestuff)|(Firefox stuff)@ Premising that I do not understand the old legacy code, that could be this, without brackets: @iPhone|iPod|Android.*Chrome/[.0-9]* Mobile@ So it should really work with just this without the slash: @iPhone|iPod|Android.*Chrome/[.0-9]* Mobile|Mobile.*Firefox@ or with the slash: @iPhone|iPod|Android.*Chrome/[.0-9]* Mobile|Mobile.*Firefox/@ or with slash and version: @iPhone|iPod|Android.*Chrome/[.0-9]* Mobile|Mobile.*Firefox/[.0-9]*@ Comment Actions e.g. https://regex101.com/r/PDyAGh/1 (then the slash, or the slash and the version - but that is) Comment Actions Right...hmm, now I also wonder. :)
We shall keep version. There"s a good number of user-agent strings out there concatenating random browser names while not being these browsers. |