View source file save as on XML saves the previous page.




View Source
10 years ago
9 years ago


(Reporter: David McNeill, Unassigned)


Firefox Tracking Flags

(Not tracked)





10 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9) Gecko/2008060309 Firefox/3.0
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9) Gecko/2008060309 Firefox/3.0

Pure XML results do not save correctly.

A web form on an internal application I use returns pure XML as it's result, a data extract. 
Firefox warns "This XML file does not appear to have any style information associated with it. The document tree is shown below."

Thats fine, I asked for raw XML, and got it. That's what I wanted to look at.  Doing file save on this page produces rubbish, since all the xml tags are dropped. Search on it doesnt work either.

View source on the page shows the correct, unaltered xml.  Selecting file save as, saves the source of the PREVIOUS html page, (the form). It does not save the XML source file as shown.

The whole idea of going and getting some XML is usually to save it for further processing.

Reproducible: Always

Steps to Reproduce:
1. From a simple form page, request an XML result document.
2. View source the returned XML
3. File save the source
4. Look at the saved file - it is your previous page, not your xml.
Actual Results:  
html source of the requesting page

Expected Results:  
Contents of the saved file should be the raw XML result file.

Handling of raw xml in general seems not often considered.

Doing select all, copy, then pasting into kate allows you to retrieve the xml. 

A bit frustrating if you forget, and use save as instead, and the XML took 30 minutes for the server to generate.


9 years ago
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.