[whatwg] Same-origin checking for media elements

Robert O'Callahan robert at ocallahan.org
Wed Nov 12 02:58:54 PST 2008


On Wed, Nov 12, 2008 at 11:19 PM, Jonas Sicking <jonas at sicking.cc> wrote:

> An additional, though rather minor problem, is that implementations will
> have to delay the loadstart event until it has confirmed that the targeted
> file is in fact a real video file, and has confirmed that with relatively
> high level of confidence. Otherwise the size of random HTML files can be
> measured using the <video> element.


We can fire "loadstart" normally and return 0 in the "loaded" attribute and
"unknown" in the "total" attribute (however that should be encoded). (We
have to be able to return "unknown" since there can be situations, e.g. live
streams, where we'll never know the total size.)

Rob
--
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20081112/ffe15478/attachment.htm>


More information about the whatwg mailing list