jenssegers / agent

👮 A PHP desktop/mobile user agent parser with support for Laravel, based on Mobiledetect
https://jenssegers.com
MIT License
4.53k stars 473 forks source link

Yandex Browser is detected as Chrome #164

Open daryakorobkova opened 4 years ago

daryakorobkova commented 4 years ago

Agent {#244 ▼

cache: []

userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 YaBrowser/19.12.0.769 Yowser/2.5 Safari/537.36"

httpHeaders: []

cloudfrontHeaders: []

matchingRegex: "Chrome|\bCrMo\b|CriOS|Android.Chrome/[.0-9] (Mobile)?"

matchesArray: array:1 [▼

0 => "Chrome"

]

detectionType: "mobile"

}

vodnicearv commented 3 years ago

так яндекс браузер построен на основе chromium правильно определяется

sirian commented 3 years ago

@vodnicearv you wrong. Opera also built on top of chromium, but detects as Opera

Agent {#659 ▼
  #cache: array:13 [▶]
  #userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 OPR/76.0.4017.177"
  #httpHeaders: array:22 [▶]
  #cloudfrontHeaders: []
  #matchingRegex: "Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+$|Coast/[0-9.]+|Opera|OPR"
  #matchesArray: array:1 [▼
    0 => "OPR"
  ]
  #detectionType: "extended"
}
pipisco commented 6 months ago

так яндекс браузер построен на основе chromium правильно определяется

Look at what user agent you are passing if you use YaBrowser. Just in case:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 YaBrowser/24.1.0.0 Safari/537.36

In this case we see that: