MozillaZine

57beta: How to View XML in Browser?

Discuss building things with or for the Mozilla Platform.
MarkRH

User avatar
 
Posts: 1190
Joined: September 12th, 2007, 2:30 am
Location: Oklahoma City, OK

Post Posted September 28th, 2017, 3:56 am

With 55.0.3 I can view XML contents directly in the browser, even in clean profile. With 57, it's either blank or a single line of numbers or something.

Site: http://census.daybreakgames.com/xml/get/eq2/

55.0.3:
Image

57:
Image

So far no luck finding an extension to help with it. It did find a JSON viewer http://census.daybreakgames.com/json/get/eq2/ but sometimes easier to read the XML. Anyway, I'm just trying to get my beta install as close to my normal one and I've found many extensions that replace the functionality of my Legacy ones. The XML thing was just a basic Firefox behavior. Hmmm.. Well, suppose I can use the Web Developer interface to view the code.

Brummelchen
 
Posts: 2728
Joined: March 19th, 2005, 10:51 am

Post Posted September 28th, 2017, 4:18 am

its server error
from chromium:
This XML file does not appear to have any style information associated with it. The document tree is shown below.

the tree is an internal chromium function. (as you noticed in v55)

no firefox fault.

RobertJ
Moderator

User avatar
 
Posts: 10328
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Post Posted September 28th, 2017, 7:43 am

.
Moving to builds since beta is not a release.

.
FF 57.0.2 - FF 58b10 - Palemoon 27.3.0 - TB 52.5 - Mac OSX 10.13.2
Computers I've used: IBM 7094/UNIVAC 1108/IBM 360/DEC PDP11/DEC VAX-11 780/DEC VAXstation 8000/Sun SPARCstation 2/Mac from 1984 to 2017

morat
 
Posts: 2491
Joined: February 3rd, 2009, 6:29 pm

Post Posted September 28th, 2017, 11:32 am

XML Pretty Print Online Tool
http://www.samltool.com/prettyprint.php

MarkRH

User avatar
 
Posts: 1190
Joined: September 12th, 2007, 2:30 am
Location: Oklahoma City, OK

Post Posted September 29th, 2017, 2:28 am

Well, I filed a bug concerning it: https://bugzilla.mozilla.org/show_bug.cgi?id=1404266

morat
 
Posts: 2491
Joined: February 3rd, 2009, 6:29 pm

Post Posted September 29th, 2017, 3:52 am

I just tested the XML file in Fx Portable Release 56.0 and Fx Portable Beta 57.0b3.

http://census.daybreakgames.com/xml/get/eq2/

Same result in both versions. The pages look normal like your image for Fx 55.0.3.

MarkRH

User avatar
 
Posts: 1190
Joined: September 12th, 2007, 2:30 am
Location: Oklahoma City, OK

Post Posted September 29th, 2017, 10:27 am

OK, with a clean profile it looks normal. So, some setting or extension is causing it. Hmmm...

Now it's working with my normal profile. What gives? Very interesting.

MarkRH

User avatar
 
Posts: 1190
Joined: September 12th, 2007, 2:30 am
Location: Oklahoma City, OK

Post Posted September 29th, 2017, 10:34 am

The Hover Zoom+ extension is causing it: https://addons.mozilla.org/en-US/firefo ... src=search

With Imagus enabled instead, it views the XML files normally. https://addons.mozilla.org/en-US/firefo ... us/?src=ss

Brummelchen
 
Posts: 2728
Joined: March 19th, 2005, 10:51 am

Post Posted October 5th, 2017, 3:18 am

thank you for feedback. nevertheless chromium and also fireox 58 do not show a formatted xml content. so at least its still a server error.

MarkRH

User avatar
 
Posts: 1190
Joined: September 12th, 2007, 2:30 am
Location: Oklahoma City, OK

Post Posted October 5th, 2017, 12:16 pm

It's not a server error. Well, maybe with some specific ones. But the correct MIME type is being sent. Works in IE11 and Google Chrome. Works in 57beta as long as that one extension isn't enabled (for me). Anyway, it's been duplicated by others here https://bugzilla.mozilla.org/show_bug.cgi?id=1404266

isaacschemm
 
Posts: 239
Joined: January 20th, 2015, 12:29 pm

Post Posted October 6th, 2017, 6:42 pm

It's true that the server is not sending any style information. Firefox applies some on its own when that happens (which is most of the time.)

Return to Mozilla Development


Who is online

Users browsing this forum: No registered users and 1 guest