The minimum a DOM event has to offer this backend: a way to stop the default
handling of webglcontextlost.
Calling preventDefault() on that event is what makes the browser promise
to fire webglcontextrestored. Without it the context never comes back, and
§61's restore half of the contract becomes unimplementable.
The minimum a DOM event has to offer this backend: a way to stop the default handling of
webglcontextlost.Calling
preventDefault()on that event is what makes the browser promise to firewebglcontextrestored. Without it the context never comes back, and §61's restore half of the contract becomes unimplementable.