Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emulated devices get Edg appended to their user agent when dev tools are opened #248

Open
XLeapZan opened this issue Apr 24, 2024 · 1 comment
Labels
bug Something isn't working tracked This issue is now tracked on our internal backlog

Comments

@XLeapZan
Copy link

XLeapZan commented Apr 24, 2024

I'm using Edge 124.0.2478.51, any custom user agent added to the device simulator gets 'Edg/124.0.0.0' appended to its user agents when the dev tools are reopened.

Steps to reproduce:

  • Open DevTools
  • Enable device emulation
  • Add a custom device and specify a user agent. Don't specify Edg anywhere in the string)
  • Close DevTools
  • Reopen DevTools
  • Verify custom device

Current behavior:

  • the user agent has been changed and Edg/124.0.0.0 has been appended
    (this happens to all custom user agents that don't already have Edg in their string)

Expected:

  • The user agent of custom devices will remain unchanged.

P.S. This also happens to the built-in device user agents. I suppose you could argue that it should emulate Edge on those devices, but then I would then expect, for example, for an 'iPad Mini' to say
'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 EdgiOS/124.0.0.0'
but it still appends 'Edg/124.0.0.0'.

AB#50298790

@XLeapZan XLeapZan added the bug Something isn't working label Apr 24, 2024
@captainbrosset
Copy link
Contributor

Thanks for the report. I've tested this just now and can reproduce the issue locally. I will put this on our dev team's backlog.

@captainbrosset captainbrosset added the tracked This issue is now tracked on our internal backlog label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked This issue is now tracked on our internal backlog
Projects
None yet
Development

No branches or pull requests

2 participants