Bug 150028

Summary: Canvas.toDataURL incorrectly raises exception when using Media Source Extensions
Product: WebKit Reporter: Alex <a.nemec>
Component: CanvasAssignee: 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   

Description Alex 2015-10-12 05:30:42 PDT
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
Comment 1 Alex 2016-06-08 07:34:50 PDT
Ok,

this bug is now 6 months old and still has the NEW status :). So there is point in reporting the bugs here...

Alex
Comment 2 Alex 2016-06-08 07:36:26 PDT
Should be "no point" of course...
Comment 3 Jer Noble 2016-06-08 11:22:26 PDT
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.
Comment 4 Brent Fulgham 2022-07-18 14:43:53 PDT
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.