Re: File API: why is there same-origin restriction on blob URLs?

On Wed, Mar 27, 2013 at 6:35 PM, Jonas Sicking <> wrote:
> The question is, what happens if you do:
> <iframe src="blob:..." id=iframe>
> iframe.onload = function() {
>   iframe.contentWindow.document; // throws or not?
> }
> What if the blob-url was created in another origin, does that make a difference?
> For data: URIs different browsers behave differently in the example above.
> Same question applies if you create an <img src="blob:..."> and then
> drawImage it into a canvas, does the canvas get tainted? Again, I
> think different browsers do different things for data: URLs here.

I think both of those should work, including for data URLs (unless you
get either the blob or data URL as a result of a non same-origin
redirect (maybe any redirect?)). I need to sort a few things out in but then hopefully that can be used to
define this at least for data URLs. It's still a bit unclear to me how
we want to define blob URLs, but maybe that fits right in.


Received on Thursday, 28 March 2013 05:44:56 UTC