duckduckgo / macos-browser

DuckDuckGo macOS Browser
Apache License 2.0
249 stars 10 forks source link

Simplify User Agent logic and update unit tests #3586

Closed ayoy closed 4 days ago

ayoy commented 4 days ago

Task/Issue URL: https://app.asana.com/0/1201037661562251/1208568177174606/f CC: @jonathanKingston

Description: This change updates User Agent rules as follows:

Steps to test this PR:

  1. Open https://duckduckgo.com and verify that you see a minimal homepage (without macOS browser download CTA as seen in Safari)
  2. Open this Kibana view and this Kibana view.
  3. Search on SERP for samplesearchformacosbrowseruapullrequesttesting
  4. Refresh Kibana and verify that agent reported for nginx access and pixels is ddg_mac_desktop (the same searches on a macOS browser release app would show empty user agent).

Definition of Done:


Internal references:

Pull Request Review Checklist Software Engineering Expectations Technical Design Template Pull Request Documentation