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

Chromium-based Edge detection #387

Open
justinsthomas opened this issue Jan 3, 2020 · 0 comments
Open

Chromium-based Edge detection #387

justinsthomas opened this issue Jan 3, 2020 · 0 comments

Comments

@justinsthomas
Copy link

window.navigator.userAgent of the browser is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36

This is the UA string I'm seeing for the latest beta of chromium-based Edge running in Windows 10 in a virtual machine on my macbook. I noticed in this issue's discussion (#311) there is talk about a Edg value being present in the UA string, but I don't see it here. I do see it in a Canary build, as seen here: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4003.0 Safari/537.36 Edg/81.0.381.0. What's also interesting is that in both cases, Bowser is telling me the browser name is Chrome.

For reference:
edge-beta

This raises two questions for me:

  1. Is the Edg flag update just lagging behind Canary and hasn't made it into beta yet?
  2. I would expect Bowser to tell me that this browser is still Edge, but be able to differentiate between legacy and chromium-based versions by either bowser version number, the presence of blink: true, or both. Is this a bug in the Bowser library, in that it should be designating this browser as Edge, or do I need to check version/blink and not just rely on browser name for chromiun-based Edge detection? Happy to help fix if it is a valid bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant