See WebGL spec section 6.3
After re-examine the code, it seems that this is already taken care of in WebGLRenderingContext::validateElementArraySize. However, we don't have tests covering this behavior. I'll add test cases.
Created attachment 77648 [details] Patch
Comment on attachment 77648 [details] Patch I like test cases. :)
Comment on attachment 77648 [details] Patch Clearing flags on attachment: 77648 Committed r74777: <http://trac.webkit.org/changeset/74777>
All reviewed patches have been landed. Closing bug.
http://trac.webkit.org/changeset/74777 might have broken GTK Linux 64-bit Debug The following tests are not passing: editing/selection/extend-by-character-005.html