web-bugs icon indicating copy to clipboard operation
web-bugs copied to clipboard

clients.henner.com - Firefox is an unsupported browser

Open webcompat-bot opened this issue 5 years ago • 7 comments

URL: https://clients.henner.com/henner/fr/compatibility

Browser / Version: Firefox iOS 33.1 Operating System: iOS 14.5.1 Tested Another Browser: Yes Safari

Problem type: Site is not usable Description: Browser unsupported Steps to Reproduce: Firefox mobile is said to be unsupported (error message) whereas Safari mobile is.

View the screenshot Screenshot
Browser Configuration
  • None

From webcompat.com with ❤️

webcompat-bot avatar May 28 '21 14:05 webcompat-bot

We appreciate your report. I was able to reproduce the issue. The page returns an error message regarding the compatibility of the browser:

IMG_1188

Notes:

  1. Reproducible regardless of the status of ETP
  2. Reproducible on the latest build of Firefox Nightly
  3. Works as expected using Safari: IMG_1189

Tested with: Browser/Version: Safari 14.4.2/ Firefox Daylight 34.0 (4920) Operating System: iOS 14.4.2

Moving this to NeedsDiagnosis for further investigations.

softvision-raul-bucata avatar Jun 03 '21 08:06 softvision-raul-bucata

This is user agent sniffing

        this.compatibility = !1,
        this.debugMode = !!i.a.debug,
        this.browsers.forEach(function (t) {
          return t.minVersion = parseInt(e[t.key] || 0, 10)
        });
        var n = this.deviceService.getDeviceInfo();
        if (n.browser && n.browser_version) {
          var r = n.browser_version.split('.') [0],
          o = this.browsers.find(function (e) {
            return e.identifier === n.browser && e.minVersion <= parseInt(r, 10)
          });
          this.compatibility = !!o
        }
      }
      return e.prototype.isCompatible = function () {
        return this.compatibility
      },
Capture d’écran 2021-06-04 à 14 05 13

e.minVersion is 45

They have this earlier function which is

        this.browsers.forEach(function (t) {
          return t.minVersion = parseInt(e[t.key] || 0, 10)
        });

e defines a lot of constants, including

COMPATIBILITY_CHROME_VERSION: "45"
COMPATIBILITY_EDGE_VERSION: "12"
COMPATIBILITY_FIREFOX_VERSION: "45"
COMPATIBILITY_INTERNET_EXPLORER_VERSION: "10"
COMPATIBILITY_SAFARI_VERSION: "9"
COMPATIBILITY_SAMSUNG_VERSION: "0"

when they go to

        var n = this.deviceService.getDeviceInfo();

they get the right information from the browser.

{
  "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 14_4_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/34.0  Mobile/15E148 Safari/605.1.15",
  "os": "iOS",
  "browser": "Firefox",
  "device": "iPhone",
  "os_version": "unknown",
  "browser_version": "0"
}

except for the browser version. They have a complex set of rules for parsing the UA string in https://clients.henner.com/main.cda0ba9a5dafc471f159.js

which doesn't understand what is firefox ios. :)

karlcow avatar Jun 04 '21 05:06 karlcow

Ah that's it. They have no rules to parse FxiOS

      d = {
        CHROME: [
          /\bChrome\/([\d\.]+)\b/,
          /\bCriOS\/([\d\.]+)\b/
        ],
        FIREFOX: /\bFirefox\/([\d\.]+)\b/,
        SAFARI: /\bVersion\/([\d\.]+)\b/,
        OPERA: [
          /\bVersion\/([\d\.]+)\b/,
          /\bOPR\/([\d\.]+)\b/
        ],
        IE: [
          /\bMSIE ([\d\.]+\w?)\b/,
          /\brv:([\d\.]+\w?)\b/
        ],
        MS_EDGE: /\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,
        SAMSUNG: /\bSamsungBrowser\/([\d\.]+)\b/,
        UCBROWSER: /\bUCBrowser\/([\d\.]+)\b/
      },

karlcow avatar Jun 04 '21 05:06 karlcow

They can be contacted at https://welcome.henner.com/en/contact-us/

They need to be careful once the detection is done, that 45 is not the right value in the case of Firefox iOS.

karlcow avatar Jun 04 '21 05:06 karlcow

Message sent using 'contact us' form

mozilla829 avatar Dec 20 '21 10:12 mozilla829

Hello,

First of all we would like to thank you for your report which will allow us to solve the problem. We are working on a fix and will come back to you as soon as the problem is corrected.

Henner Digital Team.

yelaloua avatar Jan 13 '22 08:01 yelaloua

The issue has been fixed and it is no longer reproducible:

Screenshot_4

Tested with:

Browser/Version: Firefox Daylight 100.1 (9384) Operating System: iOS 15.4

Closing this as FIXED

[inv_20/2022]

softvision-raul-bucata avatar May 20 '22 12:05 softvision-raul-bucata