Bug 273548

Summary: kdewebkit opens all files in kdewebkit
Product: [Unmaintained] kdelibs Reporter: Anders Lund <anderslund>
Component: kdewebkitAssignee: webkit-devel
Status: RESOLVED WAITINGFORINFO    
Severity: normal CC: adawit
Priority: NOR    
Version: 4.6   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Anders Lund 2011-05-18 10:37:20 UTC
Version:           0.0.1 (using KDE 4.6.2) 
OS:                Linux

Using KHTML is more and more often failing (due to bad code out there). Often kdewebkit will work better, but it fails to open vairous files with the correct application. For example .od* or .docx files. KHTML does this correctly, so there is a place to look for how to do.

Sorry for filing this here if it is the wrong place, but I can not find a product for kdewebkit in the bug report dialog.

Reproducible: Always




OS: Linux (i686) release 2.6.38-ARCH
Compiler: gcc
Comment 1 Dawit Alemayehu 2011-05-18 17:00:56 UTC
The only content types kdewebkit is capable of handling properly are the usual web files (html, xhtml, xml), image files, and plain text file. It cannot possibly handle .od* or .docx files unless the webserver is sending the incorrect type for such files, e.g. Content-Type: text/plain. Hence, you need to provide an example where this is happening so we can see if that is indeed the case. Otherwise, you need to check the file associations on your system: ALT+F2, type 'filetypes', press enter.
Comment 2 Anders Lund 2011-05-18 17:29:45 UTC
My file associations are right, other kde applications behaves correctly. So does KHTML in the case of opening files.

The site in question is an intranet, so I can not provide a link. If it is possible to review the headers sent somehow, I can do that. Enlighten me :)
Comment 3 Dawit Alemayehu 2011-05-18 17:59:12 UTC
(In reply to comment #2)
> My file associations are right, other kde applications behaves correctly. So
> does KHTML in the case of opening files.
> 
> The site in question is an intranet, so I can not provide a link. If it is
> possible to review the headers sent somehow, I can do that. Enlighten me :)

Follow the instructions at

http://techbase.kde.org/Development/Tutorials/Debugging/Debugging_IOSlaves#GUI

to see the Content-Type the server returns when you click on such links...