[Webkit-unassigned] [Bug 70117] Only expose window.WebGLRenderingContext to Web content when WebGL is enabled

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 14 11:25:01 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=70117





--- Comment #2 from Kenneth Russell <kbr at google.com>  2011-10-14 11:25:01 PST ---
Note that in various ports we've fluctuated on this decision. Currently, in Chromium, we provide the WebGLRenderingContext property on the window even if WebGL is disabled on the command line. On the other hand, at least until WebGL is enabled by default in Safari, it may make sense to only expose this property when it's enabled.

The rationale is that the error message applications would likely print if window.WebGLRenderingContext is undefined is "Your browser doesn't support WebGL", not "Either your browser doesn't support WebGL, or it was disabled via a preference setting".

http://get.webgl.org/ is the canonical diagnostic of WebGL support. We can update the error messages there to better match browsers' behavior.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list