Bug 689117

Summary: firefox delegates XML documents to konqueror
Product: [openSUSE] openSUSE 11.4 Reporter: Juergen Weigert <jw>
Component: FirefoxAssignee: E-mail List <gnome-bugs>
Status: RESOLVED WORKSFORME QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: wolfgang
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: odd requester with an example that gets delegated

Description Juergen Weigert 2011-04-21 16:06:11 UTC
Is there a mode, so that firefox could attempt to show xml files by itself.
I find it strange that konqueror is needed for this, which does not work well at all.
Comment 1 Juergen Weigert 2011-04-21 16:07:47 UTC
Created attachment 426140 [details]
odd requester with an example that gets delegated
Comment 2 Wolfgang Rosenauer 2011-04-21 20:14:44 UTC
Seems there are two issues here:
1. that example offers in my case to open the file within Firefox (not Konqueror)
   (it might differ between system which app is found as default through gio or 
   gnome-vfs)
2. that it opens a dialog at all
   This is most likely because the webserver sends the data as
   Content-Transfer-Encoding	binary
   Content-Disposition	attachment
   Content-Type	text/xml
   In other cases Firefox displays text/xml files inline probably where it's not
   defined as above

I guess 2. is the correct behaviour offering to save the file or open a helper app.

1. is interesting and I haven't looked deeply into how gio figures out what is the favourite application for a certain mimetype but in this case it looks like a bad choice.

Not sure what I can do from the Firefox side here.

Asking Gnome people
Comment 3 Juergen Weigert 2011-04-21 20:38:19 UTC
Those are the headers sent in the above example:

header: Content-Transfer-Encoding: binary
header: Content-Disposition: attachment
header: Cache-Control: private
header: Content-Length: 2757
header: Content-Type: text/xml

I understand, that whenever I get "Content-Disposition: attachment" FireFox needs to save the file first.

As a workaround I digged out firefox itself from the "Choose Helper Application" dialog. With this setting, firefox does a download, then shows me 
file:///tmp/68016 in a new tab as if it were plain/text. Worksforme :-)
Comment 4 Tomáš Chvátal 2017-08-12 09:33:55 UTC
Tried to open xml document and it loaded correctly.

Please open a new issue against supported openSUSE release if you are still reproducing it.