[Bug 23348] The loaded property doesn't make sense when the body is compressed

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23348

--- Comment #14 from Glenn Maynard <glenn@zewt.org> ---
I didn't test Opera.  Since it's switching to WebKit, it's not a very
interesting test target any longer.

(In reply to Boris Zbarsky from comment #13)
> In Gecko this testcase is fundamentally not doing what you'd think because
> Gecko uses progress notifications from the HTTP library to drive its "total"
> reporting, but it needs to ask for those at send() time.  Try adding you
> onprogress listener before you call send()...
> 
> Yes, it's broken.  It's all very broken.

(I suppose I don't really need to know the details here, but how can the order
matter?  The events aren't fired until returning from the script anyway.)

I don't think this detail affects my suggestion to use the post-C-E values
instead of the in-between-CE-and-TE values.  That already matches the behavior
for .loaded in all browsers, so it seems like the only change browsers would
need to do is to ensure that total == 0 and lengthComputable == false if it
doesn't know the size. (Chrome already does that, IE10 almost does that except
for setting length to 18446744073709552000 instead of 0, and Firefox sometimes
does that, apparently depending on celestial alignment.)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 26 September 2013 02:41:43 UTC