[PATCH] Get rid of dialogs when visiting netvibes.com
Allan Sandfeld Jensen
kde at carewolf.com
Sun Jan 6 15:21:48 GMT 2008
On Sunday 06 January 2008 15:51, Aurélien Gâteau wrote:
> More on netvibes:
>
> It seems netvibes.com source is full of code like this:
>
> <iframe src="/empty.txt"></iframe>
>
> Each iframe causes Konqueror to show a "save, open or cancel" dialog.
>
> I fixed this by adding text/plain to the list of mime-type special cases.
> Main patch is kdelibs_netvibes_nodialog.diff. The other one is to keep
> filetypedetails.cpp synced, as requested in kparts/browserrun.cpp.
>
> Is it the correct way to fix this? can I commit?
>
The issue is that some webservers use text/plain as fall-back when they don't
know the correct mimetype.
So text/plain should be treated like application/octet, that is as unknown
mimetype when received from http, that will make the actual mimetype be
detected by magic.
So maybe the fix should be done in kio_http?
`Allan
More information about the kfm-devel
mailing list