Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I determine if the browser is 64-bit or not?

I have a Silverlight application I built back in 2009. Unfortunately, Silverlight is not available for 64-bit browsers. And the usage of 64-bit browsers is just starting to grow, especially with the release of Windows 8. So I want to detect the 64-bit browser and provide a user friendly message stating why the application was unable to load.

I could feasibly pull this off with a bit of Javascript, but the user-agents and such seem to be all over the map. And I've tried navigator.cpuClass which seems to do what I want in Internet Explorer. It returns x86 on a 32-bit version of IE10. But it returns undefined in Chrome and Firefox. So I'm looking for a reliable solution for all browsers.

Note that I don't care if the OS is 64-bit or not. That doesn't matter. I'm only concerned about the browser.

like image 759
Steve Wortham Avatar asked Jun 27 '13 18:06

Steve Wortham


People also ask

How do I know if my browser is 64-bit?

To check if you're running the 64-bit version of Google Chrome, open the Settings menu and head to Help > About. Look to the right of the version number. If you see “(64-bit)” at the end, you're running the 64-bit version. If you don't, you're running the 32-bit version.

How do you tell what bit my browser is?

Open Chrome, click the menu icon at the top-right, then go to “Help -> About Google Chrome” and take a look at the version number on the new page. Here you'll see quite clearly whether or not you have 64-bit Chrome because it'll say it next to the version number.

How do I know if my Chrome is 32 or 64-bit?

All you need to do is load chrome://version in the mobile browser's address bar to get information about the architecture and related information. Check the first line of the output on the page to find out whether the installed version of Chrome is 32-bit or 64-bit.

How do I make my browser 64-bit?

Switching is easy. Visit the Chrome for Windows download page to get it. After clicking the download link, ensure the page says “64-bit” under “Download Chrome for Windows.” Whenever you download Chrome in the future, be sure it says 64-bit here. If it doesn't say 64-bit, you're getting the 32-bit version.


1 Answers

Thanks to @RocketHazmat, I uncovered that 64-bit browser support was introduced with Silverlight 5. My app was using Silverlight 4. So I upgraded to 5 and now it works with the 64-bit browsers I've tested.

However, there's still one exception. Even Silverlight 5 won't run in the metro version of IE10 under Windows 8. Apparently this is by design as this is a specialized version of IE10 optimized for touch. That still doesn't explain it for me though. I think it's lame.

Of course this means that 64-bit browser detection isn't really a concern anymore. Microsoft just needs to add Silverlight support to this browser and then I'll be happy.

UPDATE

I found an interesting tidbit related to the metro/modern IE10 in Win8. You can instruct the browser that there are plugins on the page that require the "desktop" version of IE.

You just need to add this meta tag to your HTML...

<meta http-equiv="X-UA-Compatible" content="requiresActiveX=true" />

And that'll generate this prompt...

enter image description here

like image 81
Steve Wortham Avatar answered Sep 24 '22 09:09

Steve Wortham