After doing some troubleshooting, I have narrowed it down to the following code.
On my machine, that returns
null. On a working machine, it returns a proper WebGLRenderingContext as expected.
What could possibly be causing this? My first thought was a Chrome extension, but I tested in Incognito mode and got the same result. I also wondered about a Chrome experimental flag, but again, this is a fresh Windows profile. It should be all default Chrome settings.