Bug 166758

Summary: using sWidth and/or sHeight not matching video source in drawImage crashes safari
Product: WebKit Reporter: Nicolas Bregenzer <nicolas.bregenzer>
Component: CanvasAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: ap, bfulgham, dino
Priority: P2    
Version: Safari 10   
Hardware: iPhone / iPad   
OS: iOS 10   

Nicolas Bregenzer
Reported 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);
Attachments
Alexey Proskuryakov
Comment 1 2017-01-09 14:01:11 PST
Could you please provide a test case that results in this crash?
Brent Fulgham
Comment 2 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.
Note You need to log in before you can comment on or make changes to this bug.