The most significant outstanding problem with WebGL implementations is that of denial of service. Currently, if a WebGL application issues a very expensive draw call, it may cause the GPU to lock up for long periods of time. Windows' TDR and GL_ARB_robustness' "lose context on reset" functionality are the mechanisms on which detection of graphics reset will be built. In order to take a first step toward solving the DoS problem, the WebGLRenderingContext needs to know as precisely as possible why a graphics reset occurred. It seems clear that if the WebGL context was guilty of causing the reset, we definitely should not attempt to restore it once lost. More work on policy will need to follow; for example, a port might want to prompt the user if the reset occurred for unknown reasons, or maybe even if the context was guilty of causing the reset. This bug covers only the exposure of the real graphics reset status and a first pass at shutting down guilty contexts.
Created attachment 100748 [details] Patch
Comment on attachment 100748 [details] Patch Attachment 100748 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/9019866 New failing tests: fast/canvas/webgl/context-lost.html
Created attachment 100759 [details] Archive of layout-test-results from ec2-cr-linux-01 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: ec2-cr-linux-01 Port: Chromium Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Comment on attachment 100748 [details] Patch Attachment 100748 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/9050412 New failing tests: fast/canvas/webgl/context-lost.html
Created attachment 100761 [details] Archive of layout-test-results from ec2-cr-linux-02 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: ec2-cr-linux-02 Port: Chromium Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Created attachment 100905 [details] Patch
Revised patch updates test expectations for fast/canvas/webgl/context-lost.html.
Comment on attachment 100905 [details] Patch Looks good. r=me
Committed r91112: <http://trac.webkit.org/changeset/91112>