Bug 238195

Summary: Context2D drawImage(img, x, y, w, h) should not throw IndexSizeError when width == 0 or height == 0
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: CanvasAssignee: Kimmo Kinnunen <kkinnunen>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, changseok, dino, esprehn+autocc, ews-watchlist, gyuyoung.kim, markus, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 238174    
Attachments:
Description Flags
testcase
none
Patch
none
Patch none

Description Kimmo Kinnunen 2022-03-22 02:02:35 PDT
Created attachment 455352 [details]
testcase

Context2D drawImage(img, x, y, w, h) should not throw IndexException when width == 0 or height == 0
Comment 2 Kimmo Kinnunen 2022-03-22 04:26:29 PDT
Created attachment 455362 [details]
Patch
Comment 3 Kimmo Kinnunen 2022-03-22 06:37:45 PDT
Created attachment 455369 [details]
Patch
Comment 4 EWS 2022-03-23 10:06:27 PDT
Committed r291748 (248780@main): <https://commits.webkit.org/248780@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 455369 [details].
Comment 5 Radar WebKit Bug Importer 2022-03-23 10:07:29 PDT
<rdar://problem/90706702>
Comment 6 markus 2022-08-03 20:12:22 PDT
This still does not work in macOS 12.5 with https://www.shadertoy.com/view/flfyWH