W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2008

[whatwg] Same-origin checking for media elements

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 12 Nov 2008 23:58:54 +1300
Message-ID: <11e306600811120258l29d3d1aaud22c4b404b854653@mail.gmail.com>
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>
Received on Wednesday, 12 November 2008 02:58:54 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:07 UTC