Security Error with toDataURL on a canvas with drawImage on a video loaded from a data URL

RESOLVED DUPLICATE of bug 604496

Status

()

Firefox
General
RESOLVED DUPLICATE of bug 604496
7 years ago
7 years ago

People

(Reporter: S. Roeder, Unassigned)

Tracking

3.6 Branch
All
Other
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
Created attachment 545140 [details]
demo.html

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.
(Reporter)

Comment 1

7 years ago
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
Last Resolved: 7 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 604496
You need to log in before you can comment on or make changes to this bug.