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: NEW ---    
Severity: Normal CC: ap, dino
Priority: P2    
Version: Safari 10   
Hardware: iPhone / iPad   
OS: iOS 10   

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?