Bug 249630

Summary: OffscreenCanvas should use the same buffer size checks as HTMLCanvasElement
Product: WebKit Reporter: Matt Woodrow <mattwoodrow>
Component: CanvasAssignee: Matt Woodrow <mattwoodrow>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Matt Woodrow 2022-12-19 19:36:39 PST
<rdar://103177223>

HTMLCanvasElement has a lot of checks to determine if the specified size is within an acceptable range, whereas OffscreenCanvas will just allocate giant buffers if requested.

We should share the logic in CanvasBase so that we have consistent behaviour.
Comment 1 Matt Woodrow 2022-12-19 19:39:24 PST
Pull request: https://github.com/WebKit/WebKit/pull/7895
Comment 2 EWS 2022-12-22 01:00:31 PST
Committed 258237@main (d21c61e18c6f): <https://commits.webkit.org/258237@main>

Reviewed commits have been landed. Closing PR #7895 and removing active labels.