Bug 166758 - using sWidth and/or sHeight not matching video source in drawImage crashes safari
Summary: using sWidth and/or sHeight not matching video source in drawImage crashes sa...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: Safari 10
Hardware: iPhone / iPad iOS 10
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-06 05:34 PST by Nicolas Bregenzer
Modified: 2022-07-18 14:42 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Bregenzer 2017-01-06 05:34:35 PST
if you use the drawImage method with a video as a source and change the source dimensions (skewed or scaled proportionally) safari crashes after a couple of seconds, current workaround is to change the dimension of the canvas and reposition/crop the canvas itself

https://developer.mozilla.org/de/docs/Web/API/CanvasRenderingContext2D/drawImage
void ctx.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight);
Comment 1 Alexey Proskuryakov 2017-01-09 14:01:11 PST
Could you please provide a test case that results in this crash?
Comment 2 Brent Fulgham 2022-07-18 14:42:32 PDT
It's difficult to confirm this bug without a test case. We don't believe there is an ongoing issue here. If you do feel there is a problem, please REOPEN this bug and include a test case illustrating the issue.