8

I am currently using Microsoft Edge. Edge is the new Internet Browser from Microsoft.

I tried running a Unity3D Program in Edge, and it gave me the error that it was not available in Chrome:

enter image description here

Then I tried running a Browser Test at BrowserScore.com, and the test gave me the results for the Chrome browser:

enter image description here

Why?

1
  • 3
    Why do you think Microsoft Edge thinks its Chrome? from the evidence your provided its the completely opposite. If you think that your user agent is not correctly reporting the correct browser then you should check it by whatsmyuseragent.com or a similar service. Edge is new, expect websites to get confused. Commented Aug 7, 2015 at 9:50

3 Answers 3

14

Because Microsoft Edge presents a User-Agent string that contains the word Chrome. And, for that matter, Safari.

Check out http://whatsmyuseragent.com/ and you'll see something like this:

enter image description here (Emphasis mine)

This is deliberate on Microsoft's behalf to fool naïve user-agent checks into thinking that it's not Internet Explorer. Which it isn't.

1

The answer is simple and here is an oversimplified example:

// Your browser is identifying itself as this
$ua_string = 'EDGE';

// The website logic is this
if($ua_string === 'IE')
{
    echo 'You are using IE';
}
elseif($ua_string === 'FIREFOX')
{
    echo 'You are using Firefox';
}
else
{
    echo 'You are using Chrome, and we don\'t support that.';
}
1
  • Your example has a syntax error. ;)
    – Anonymous
    Commented Aug 8, 2015 at 0:08
0

It's because Edge, like Chrome, Brave, Opera, and several other browsers, is built on Chromium.

All Chromium browsers identify themselves as such in the user agent string the same way.

If you want to use a browser that isn't based on Chromium, use Firefox.

More info from the horse's mouth:
https://www.microsoft.com/en-us/edge/learning-center/what-is-chromium-how-does-it-enhance-your-browser

Not the answer you're looking for? Browse other questions tagged or ask your own question.