Closed Bug 1611423 Opened 5 years ago Closed 5 years ago

XML files don't pretty print and are displayed as plain text

Categories

(Core :: XML, defect)

72 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1605657

People

(Reporter: egil, Unassigned)

References

()

Details

Attachments

(2 files)

Attached image xml_chrome.png

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

  1. Visit some page serving XML.
  2. Server provides "Content-Type: application/xml; charset=utf-8".
  3. Response contains no DOCTYPE.
  4. Also XMLNS is custom i.e. non-xhtml (and non-html).

Example URL:
http://data.bn.org.pl/oai/bibs?verb=ListIdentifiers&metadataPrefix=marc21&from=2019-11-01T00:00:00Z&until=2019-12-10T00:00:00Z

Actual results:

Blob of text (textContent?).

Expected results:

View of XML tree. Attaching expected view (from Chrome).

It seems to be broken just now.

  • It works fine on Ubuntu on 72.0.1.
  • It doesn't work on Windows 7 on 72.0.2.

Also see complain here:
https://superuser.com/questions/1308064/firefox-stopped-displaying-xml-files-how-to-fix

And please note that Doctype is NOT required for XML. It's actually kind of required for valid HTML, not for XML.

Attached image xml_blob_ff.png

View from Windows 7, FF 72.0.2.

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0
20200117190643

Works for me. Please check what happens when you restart with add-ons disabled (Safe Mode). Add-ons are known to cause this (bug 1401793, bug 1605657).

Has STR: --- → yes
Component: Untriaged → XML
Flags: needinfo?(egil)
Product: Firefox → Core
Summary: Display XML as XML not as pre-rendered text → XML files don't pretty print and are displayed as plain text

A workaround for me is to disable LastPass and refresh. But this wasn't a problem with previous Firefox and is not a problem with Chrome (for whitch I also use LastPass).

So seems like this is a duplicate of bug 1605657.

Flags: needinfo?(egil)
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: