Bug 166758
Summary: | using sWidth and/or sHeight not matching video source in drawImage crashes safari | ||
---|---|---|---|
Product: | WebKit | Reporter: | Nicolas Bregenzer <nicolas.bregenzer> |
Component: | Canvas | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Could you please provide a test case that results in this crash?
Brent Fulgham
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.