Mobile app version of vmapp.org
Login or Join
Shelton105

: Why does the internet think Microsoft Edge is Google Chrome? I am currently using Microsoft Edge. Edge is the new Internet Browser from Microsoft. I tried running a Unity3D Program in Edge,

@Shelton105

Posted in: #BrowserDetecting #Browsers #Google #GoogleChrome #Microsoft

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:



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



Why?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelton105

2 Comments

Sorted by latest first Latest Oldest Best

 

@Reiling115

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

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


(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.

10% popularity Vote Up Vote Down


 

@Nimeshi995

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.';
}

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme