Try using "for in" to iterate through the returned canvas's properties. You'll get all the methods of the canvas. So far this sort of stuff works (OSX Leopard): gl.clearColor(0,0,0,0);
gl.clear(gl.COLOR_BUFFER_BIT);
I just got back, and I'm needing to look at the google cache of almost every mozilla forum page; I haven't gotten through to their forums a single time yet.
Their 'search moz code' thingy still works -- searching it for WebGL turns up lots ... I mean LOTS ... of code. But even though I've found a list of enums for contexts, etc, I still haven't quite found where the mapping is, or where the actual base getcontext() function is located.
I have powerful procrastination forces pushing me, though.
// IID for the nsIRenderingContext interface
// 37762dd8-8df0-48cd-a5d6-24573ffdb5b6
#define NS_IRENDERING_CONTEXT_IID \
{ 0x37762dd8, 0x8df0, 0x48cd, \
which does not mean anything to me.other example, that also do not work with minefield: http://www.c3dl.org/
Official word: https://wiki.mozilla.org/Canvas:3D