WebGLRenderingContextBase::bufferData(), WebGL2RenderingContext::copyBufferSubData(), etc. call this function. However, the logic around when to call it seems wrong. This should be investigated.