Flash had a 3D API (Stage3D) seven years ago, which was quite similar to WebGL. It wasn't used much, because Flash was already on its way out.
Although maybe that's just a result of computing power and GPU progress..
Also WebGL has been around at least that long, if not longer..