On Wed, Oct 14, 2009 at 1:04 PM, Andrew Scherkus <span dir="ltr">&lt;<a href="mailto:scherkus@google.com">scherkus@google.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
We use a combination of in-memory and block-based caching for media resources.  There is no guarantee whatsoever on what is loaded.  There&#39;s a nice side benefit of allowing complete random access to the file if the server supports range request (in my opinion a must if you&#39;re working on an audio/video site, but that&#39;s a side issue).</blockquote>
<div><br>Indeed, we support that too.<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>For http:// we don&#39;t support load at all and never reach NETWORK_LOADED.  We&#39;re also baffled at what to report in our progress events because the numbers are seemingly useless in our context.  Sometimes we&#39;ll cache the end of the file to grab some useful metadata, but we don&#39;t want to fire a progress event saying we&#39;ve loaded the last bit of the file...</div>
</blockquote><div><br>We have the same issue, unsurprisingly. Currently our progress events are not very useful because we report the download position (although we do suppress progress events while we read metadata from the end of the file). According to the spec, however, progress events should report the *amount* of data downloaded, not the position within the resource. That&#39;s a bit more useful, although it&#39;s still unclear what to do when data is discarded from the cache and then re-downloaded.<br>
<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Being the only browser (I think?) that doesn&#39;t fire the load event we&#39;ve ran into site compatibility issues.  I believe a lot of web authors are used to tacking onload= into a tag and expecting it to work.  I&#39;ve reached out to web authors to educate them about using canplaytype() + oncanplay/oncanplaythrough as alternatives to user agent checking and onload.<br clear="all">
</blockquote></div><br>Good, thanks.<br><br>We plan to stop firing the &quot;load&quot; event in the next (and all future) versions of Gecko, so we&#39;ll be doing that outreach too.<br><br>Rob<br>-- <br>&quot;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.&quot; [Isaiah 53:5-6]<br>