Bug 247247 - Handle bitmap allocation failure in OffscreenCanvas::transferToImageBitmap
Summary: Handle bitmap allocation failure in OffscreenCanvas::transferToImageBitmap
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Matt Woodrow
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-10-30 16:14 PDT by Matt Woodrow
Modified: 2022-10-31 18:19 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Woodrow 2022-10-30 16:14:37 PDT
<rdar://101591380>

transferToImageBitmap can be called when we were unable to allocate a bitmap, we should handle this the same way as HTMLCanvasElement::toBlob and return null.
Comment 1 Matt Woodrow 2022-10-30 16:15:27 PDT
Pull request: https://github.com/WebKit/WebKit/pull/5947
Comment 2 EWS 2022-10-31 18:19:24 PDT
Committed 256178@main (cc6c9a484504): <https://commits.webkit.org/256178@main>

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