Bug 214622

Summary: Fix validation of deleted WebGL objects
Product: WebKit Reporter: James Darpinian <jdarpinian>
Component: WebGLAssignee: James Darpinian <jdarpinian>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, changseok, dino, esprehn+autocc, ews-watchlist, graouts, gyuyoung.kim, kbr, kondapallykalyan, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 126404, 126940    
Attachments:
Description Flags
Patch none

Description James Darpinian 2020-07-21 17:08:58 PDT
Fix validation of deleted WebGL objects
Comment 1 James Darpinian 2020-07-21 17:10:53 PDT
Created attachment 404882 [details]
Patch
Comment 2 James Darpinian 2020-07-21 17:12:28 PDT
I discovered this while looking at conformance tests for query objects (bug 126940).
Comment 3 Kenneth Russell 2020-07-21 17:23:21 PDT
Comment on attachment 404882 [details]
Patch

Looks good to me. Good catch.

Do you think we should bring over two additional concepts from Chromium's WebGL implementation?

- WebGLObject::MarkedForDeletion
- WebGLRenderingContextBase::ValidateNullableWebGLObject

?

Maybe not in this patch, but in a follow-on one?
Comment 4 James Darpinian 2020-07-21 17:29:26 PDT
Yes, I think there's more work to be done here.
Comment 5 Kenneth Russell 2020-07-21 17:40:43 PDT
Thanks, sounds good. This individual patch LGTM - let's file follow-on bugs.
Comment 6 EWS 2020-07-22 11:25:48 PDT
Committed r264713: <https://trac.webkit.org/changeset/264713>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 404882 [details].
Comment 7 Radar WebKit Bug Importer 2020-07-22 11:26:23 PDT
<rdar://problem/65946331>