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?

  • 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. – Simon Hayter Aug 7 '15 at 9:50
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.

0

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.';
}
  • Your example has a syntax error. ;) – Anonymous Aug 8 '15 at 0:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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