Thanks for any leads or info.
There is a function in generated file UnityConfig.js, which can tell you about browser WebGL support:
var hasWebGL = (function ()
// Browser has no idea what WebGL is. Suggest they
// get a new browser by presenting the user with link to
var canvas = document.createElement('canvas');
var gl = canvas.getContext("webgl");
gl = canvas.getContext("experimental-webgl");
// Browser could not initialize WebGL. User probably needs to
// update their drivers or get a new browser. Present a link to
I use it along with browser detection: To NOT run WebGL in IE, to run WebGL in Chrome, and in all other browsers I run WebPlayer as default. But if user don’t have WebPlayer installed, he can choose to run in WebGL instead (if supported by browser).
My project runs nicely also in Opera WebGL, in Safari not so much.
For browser type and version detection I recommend bowser.
For now it should be pretty simple to write since the only browsers we are officially supporting are desktop Firefox and Chrome. So you only have to check for those two.