Bug 238195 - Context2D drawImage(img, x, y, w, h) should not throw IndexSizeError when width == 0 or height == 0
Summary: Context2D drawImage(img, x, y, w, h) should not throw IndexSizeError when wid...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kimmo Kinnunen
URL:
Keywords: InRadar
Depends on:
Blocks: 238174
  Show dependency treegraph
 
Reported: 2022-03-22 02:02 PDT by Kimmo Kinnunen
Modified: 2022-08-03 20:12 PDT (History)
9 users (show)

See Also:


Attachments
testcase (169 bytes, text/html)
2022-03-22 02:02 PDT, Kimmo Kinnunen
no flags Details
Patch (9.91 KB, patch)
2022-03-22 04:26 PDT, Kimmo Kinnunen
no flags Details | Formatted Diff | Diff
Patch (11.63 KB, patch)
2022-03-22 06:37 PDT, Kimmo Kinnunen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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