Skip to content

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

Open
@XLeapZan

Description

@XLeapZan

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtrackedThis issue is now tracked on our internal backlog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions