Closed Bug 41986 Opened 25 years ago Closed 25 years ago

XML loading crashes Mozilla when using Content-Encoding : gzip

Categories

(Core :: XML, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: taras.tielkes, Assigned: nisheeth_mozilla)

Details

(Keywords: crash)

I did some experiments with loading compressed XML with the new data loading syntax. Doing this with a 6 June M16 nightly build will result in a crash. Since I'm not sure my method is legit/correct, here's the setup. I've compressed an XML file using the gnu gzip tool for Windows. An ASP page on the server reads in the file, sets the HTTP header "Content- Encoding:gzip" and writes the contents of the compressed XML file to the result stream. The same method, when applied to a normal HTML page works. Server is IIS4 on WinNT4. I have not yet tested IIS5, which has automatic HTTP compression available.
Keywords: crash
Taras, can you add a testcase for this? Does this occur with M17 nightlies, too?
Loading zipped XML data isn't a legal use of the XML document loading functionality. Vidur has code in his tree that removes the content type parameter from the load method on the document. Once that is done, this bug becomes invalid.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Nisheeth, I don't know Mozilla's layering, but shouldn't your HTTP layer take care of any Content-encoding issues, and provide you (the xml parser) with a the actual content. Anyway, there may be some bugs in the code that I use for gzip encoding now, so I'll leave this one closed, and check it out at a later date.
Marking verified invalid per last comments.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.