Condition looks to be incorrect. If texDepthWebGL is available, it should be using GL_DEPTH_COMPONENT16/24/32 but currently in WebGL always uses GL_DEPTH_COMPONENT which can fail especially in WebGL2.