Closed
Bug 717221
Opened 13 years ago
Closed 13 years ago
XMLHttpRequest progress events provide incorrect information for compressed responses
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 614352
People
(Reporter: atkinson.tommy, Unassigned)
Details
Attachments
(1 file)
45.28 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 Build ID: 20111223083612 Steps to reproduce: Added progress listener as described in https://developer.mozilla.org/En/XMLHttpRequest/Using_XMLHttpRequest#Monitoring_progress Made request for a gzip compressed XML file. Actual results: Progress reported goes over 100%. Response: HTTP/1.1 200 OK X-Powered-By: PHP/5.3.8 Content-Type: text/xml; charset=utf-8 Expires: 0 Content-Encoding: gzip Content-Length: 385569 Date: Wed, 11 Jan 2012 13:54:11 GMT Server: lighttpd/1.4.26 Expected results: evt.loaded should contain the length of the compressed data not the decompressed data.
Component: Untriaged → DOM: Mozilla Extensions
Product: Firefox → Core
QA Contact: untriaged → general
Comment 1•13 years ago
|
||
evt.loaded should contain the length of decompressed data. It is the total which is wrong. this is a dup of some other bug.
From the spec: "Initialize the loaded attribute to the number of HTTP entity body octets transferred."
Comment 3•13 years ago
|
||
ah, right. Well, that is not very useful value for a webpage. It is just some "random" number which may or may not correlate what the XHR actually has processed (and how much data is actually available in XHR). But anyway, this is a dup.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
I'm not sure this is a duplicate. I filed this bug because updating from Firefox 8 to Firefox 9 broke previously working code. The cause of this bug is some change between 8 and 9 not something that broke way back in 3.6.
That's interesting. Can you provide a test case or a website that shows the bug?
Assignee | ||
Updated•11 years ago
|
Component: DOM: Mozilla Extensions → DOM
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•