Images with .src attribute-value added using
"window.URL.createObjectURL" do not give a preview.
The doc for window.URL.createObjectURL says:
Creates a new object URL, whose lifetime is tied to the document in
the window on which it was created. The new object URL represents the
specified File object.
And my testing says:
the URI doesn't work in another document (except the one it was
created in).
Currently Firebug shows a little tooltip in the HTML panel for IMG
elements and uses the src attribute value to display the element. This
now doesn't work...
Is there any way how to share the URI blob with another document? I
guess it's not possible to get the File object from the URI and call
the createObjectURL again to get different and working URI, correct?
Any hints how to solve this?
Thanks!
Honza
It should, if they're same-origin. Are they?
-Boris
- Kyle
> _______________________________________________
> dev-platform mailing list
> dev-pl...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
All the HTML is consequently injected into that page as necessary.
The loaded HTML page can be seen here:
http://code.google.com/p/fbug/source/browse/branches/firebug1.7/content/firebug/panel.html
The XUL <browser> code is here:
http://code.google.com/p/fbug/source/browse/branches/firebug1.7/content/firebug/firebugOverlay.xul#385
So, my feeling is yes, it should have access to privileged content
(however not sure if through moz-datafile)
Honza
One might say that we should hold on to object URLs beyond the revoke call
in some way that makes them accessible only to chrome, but I don't think
that's worth the extra complexity here.
- Kyle
On Mon, Mar 7, 2011 at 8:17 AM, Jan Honza Odvarko <odv...@gmail.com> wrote:
Thanks for the analysis Kyle!
Honza