Bug 253927

Summary: ReleaseSerializedImageBuffer doesn't release the underlying IOSurface
Product: WebKit Reporter: Matt Woodrow <mattwoodrow>
Component: Layout and RenderingAssignee: Matt Woodrow <mattwoodrow>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, tzvetelin.vassilev, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Matt Woodrow 2023-03-14 19:05:43 PDT
We're adding a read reference in the RemoteSerializedImageBufferProxy constructor, and we never have any reads happen if we destroy the RemoteSerializedImageBufferProxy without transferring to an ImageBuffer.

This shouldn't happen often, but can happen if you draw to an OffscreenCanvas, call `commit()`, and then draw again quickly (not waiting for rAF).
Comment 1 Matt Woodrow 2023-03-14 19:08:11 PDT
Pull request: https://github.com/WebKit/WebKit/pull/11534
Comment 2 EWS 2023-03-15 12:15:48 PDT
Committed 261703@main (284c71ac630f): <https://commits.webkit.org/261703@main>

Reviewed commits have been landed. Closing PR #11534 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-03-15 12:16:16 PDT
<rdar://problem/106767160>
Comment 4 Matt Woodrow 2023-04-06 11:07:37 PDT
*** Bug 254974 has been marked as a duplicate of this bug. ***