Bug 202368 - Web Inspector: Canvas Context "resets" when resizing WI with WebGPU demo
Summary: Web Inspector: Canvas Context "resets" when resizing WI with WebGPU demo
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-30 12:52 PDT by Jon Lee
Modified: 2019-09-30 16:57 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Lee 2019-09-30 12:52:39 PDT
Load https://webkit.org/demos/webgpu/hello-triangle.html
Open WI (docked @ bottom).
Reload.
Resize the WI up and down.

At some point the Overview resets and says "No Canvas Contexts".
Comment 1 Devin Rousso 2019-09-30 15:29:47 PDT
I think the reason for this is that the underlying `WebGPUDevice` object gets GCd.  
Interesting.  Would it be unreasonable to keep the `WebGPUDevice` alive so long as the underlying `GPUDevice` stays alive?  I wonder if this is also a problem with `CanvasRenderingContext`.