diff --git a/dom/canvas/crashtests/1654477.html b/dom/canvas/crashtests/1654477.html new file mode 100644 index 000000000000..5303291fe241 --- /dev/null +++ b/dom/canvas/crashtests/1654477.html @@ -0,0 +1,26 @@ + + + + + + + + + diff --git a/dom/canvas/crashtests/crashtests.list b/dom/canvas/crashtests/crashtests.list index 8d776b62deb9..a6262e0efee4 100644 --- a/dom/canvas/crashtests/crashtests.list +++ b/dom/canvas/crashtests/crashtests.list @@ -56,3 +56,4 @@ pref(gfx.offscreencanvas.enabled,true) load 1546390.html load 1549853.html load 1551745.html load 1569648.html +skip-if(!winWidget||!isDebugBuild) pref(layers.gpu-process.crash-also-crashes-browser,true) load 1654477.html diff --git a/gfx/layers/d3d11/TextureD3D11.cpp b/gfx/layers/d3d11/TextureD3D11.cpp index 6c672f95cb61..5e093c8e585f 100644 --- a/gfx/layers/d3d11/TextureD3D11.cpp +++ b/gfx/layers/d3d11/TextureD3D11.cpp @@ -773,7 +773,7 @@ bool DXGITextureHostD3D11::EnsureTexture() { (HANDLE)mHandle, __uuidof(ID3D11Texture2D), (void**)(ID3D11Texture2D**)getter_AddRefs(mTexture)); if (FAILED(hr)) { - NS_WARNING("Failed to open shared texture"); + MOZ_ASSERT(false, "Failed to open shared texture"); return false; } diff --git a/gfx/webrender_bindings/RenderD3D11TextureHost.cpp b/gfx/webrender_bindings/RenderD3D11TextureHost.cpp index c5139e9643e8..5e8f0af96130 100644 --- a/gfx/webrender_bindings/RenderD3D11TextureHost.cpp +++ b/gfx/webrender_bindings/RenderD3D11TextureHost.cpp @@ -85,9 +85,9 @@ bool RenderDXGITextureHost::EnsureD3D11Texture2D() { (HANDLE)mHandle, __uuidof(ID3D11Texture2D), (void**)(ID3D11Texture2D**)getter_AddRefs(mTexture)); if (FAILED(hr)) { - NS_WARNING( - "RenderDXGITextureHost::EnsureLockable(): Failed to open shared " - "texture"); + MOZ_ASSERT(false, + "RenderDXGITextureHost::EnsureLockable(): Failed to open shared " + "texture"); gfxCriticalNote << "RenderDXGITextureHost Failed to open shared texture, hr=" << gfx::hexa(hr);