Bug 150028
Summary: | Canvas.toDataURL incorrectly raises exception when using Media Source Extensions | ||
---|---|---|---|
Product: | WebKit | Reporter: | Alex <a.nemec> |
Component: | Canvas | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Major | CC: | a.nemec, bfulgham, dino, eric.carlson, jer.noble |
Priority: | P4 | ||
Version: | Safari 9 | ||
Hardware: | All | ||
OS: | All |
Alex
Hi all,
these steps can be followed to reproduce the bug:
1. Create a "video" element, a "canvas" element and its 2d "context".
2. Have the video element's "src" be a "MediaSource" URL (createObjectURL is called for a new MediaSource object).
3. Draw an image with context.drawImage(video, 0, 0);
4. You will not be able to call canvas.toDataURL, because a security exception will be raised (incorrectly).
Alex
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alex
Ok,
this bug is now 6 months old and still has the NEW status :). So there is point in reporting the bugs here...
Alex
Alex
Should be "no point" of course...
Jer Noble
Ve don't yet support painting MSE video into canvas (see bug #125157). This work (ensuring that painting MSE doesn't taint canvases) will take place in that bug.
Brent Fulgham
We believe this issue is resolved now that Bug 125157 is shipping. If you believe there is still a problem, please REOPEN this radar with a relevant test case.