Bug 150028 - Canvas.toDataURL incorrectly raises exception when using Media Source Extensions
Summary: Canvas.toDataURL incorrectly raises exception when using Media Source Extensions
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: Safari 9
Hardware: All All
: P4 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-12 05:30 PDT by Alex
Modified: 2022-07-18 14:43 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.