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: NEW
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: 2017-01-09 14:01 PST (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 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?