MicrosoftEdge / DevTools

Feedback and discussions about Microsoft Edge Developer Tools
MIT License
151 stars 49 forks source link

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

Open XLeapZan opened 2 months ago

XLeapZan commented 2 months ago

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:

Current behavior:

Expected:

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

captainbrosset commented 2 months ago

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.