faisalman / ua-parser-js

"Unmask Your Traffic" - UAParser.js: The Essential Web Development Tool for User-Agent Detection
https://uaparser.dev/
GNU Affero General Public License v3.0
9.28k stars 1.2k forks source link

Unable to detect Firefox browser on iPad [Detecting as safari] #709

Open umeshrenlty opened 8 months ago

umeshrenlty commented 8 months ago

Description: Issue: We are encountering an issue where broswer name is giving safari for firefox in ipad

Steps to Reproduce:

Open the application in Firefox Ipad. Retrieve broswer name. Expected Behavior: The application should accurately identify Firefox as the browser.

Actual Behavior: Firefox is being incorrectly detected as Safari due to discrepancies

Additional Information:

Browser: Firefox Device: Ipad Detected Browser: Safari Note: This issue impacts the accurate identification of the browser and may lead to unintended behavior. Any insights or solutions to resolve this misidentification would be highly appreciated.

cpeterso commented 8 months ago

At this time, the Firefox UA string doesn't include "FxiOS" (in default/desktop mode) on iPad. This is Firefox iOS bug https://github.com/mozilla-mobile/firefox-ios/issues/6620.

Safari on iPadOS 17.4: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Safari/605.1.15

Firefox 120.4 on iPadOS 17.4: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15