Closed
Bug 670620
Opened 13 years ago
Closed 13 years ago
Security Error with toDataURL on a canvas with drawImage on a video loaded from a data URL
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 604496
People
(Reporter: s.roeder, Unassigned)
Details
Attachments
(1 file)
4.82 KB,
text/plain
|
Details |
User Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.18) Gecko/20110628 Ubuntu/10.04 (lucid) Firefox/3.6.18 Build ID: 20110628230237 Steps to reproduce: I'm working on a javascript conversion library, it would be nice to convert the video back into an image through canvas and modify it, but firefox always gives a security exception after calling toDataURL. I think it's something like the cross-origin image loading issues with canvas, but I don't believe data urls count as a different domain. Chrome allows this behavior. For comparison I did the same with a image, but there is no security error thrown. I don't really understand the different treatment of image and video int toDataUrl of a canvas. Actual results: Security error" code: "1000 Expected results: Same treatment as on loading a image.
You can reproduce the error in the demo.html. A different point of view is that maybe the not thrown security exception on loading a image in this case is the bug. Is it like this? This will have a deep impact on our software in future releases.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•