Bug 102582 - If a webpage contains a pdf file in a frame, then konqueror will display it there, even if embedding is switched off.
Summary: If a webpage contains a pdf file in a frame, then konqueror will display it t...
Status: ASSIGNED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-27 05:17 UTC by Claus Wilke
Modified: 2011-06-11 07:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claus Wilke 2005-03-27 05:17:25 UTC
Version:           3.4.0 (using KDE 3.4.0 Level "a" , unofficial build of SUSE )
Compiler:          gcc version 3.3.3 (SuSE Linux)
OS:                Linux (i686) release 2.6.5-7.151-default

I like to have pdf files open in a separate viewer (acroread or kpdf) rather than embedded into the browser. However, under certain conditions, this is not possible, as konqueror will ignore the settings for embedding. It seems to me that the situation that causes this effect is when a webpage contains a pdf file in a frame.

Unfortunately, many scientific online journals use this option, so I encounter it all the time. An example is here:
http://www.pnas.org/cgi/reprint/102/12/4225
Even if the default viewer is set to acroread, and embedding is turned off, the pdf will be shown in the frame with kghostview.

This bug may be related to Bug 57426.
Comment 1 David Faure 2005-03-29 00:52:30 UTC
OK, the example page you gave uses <a target="_self" href="/cgi/reprint/102/12/4225.pdf"> from a frame.

The frame offers "embed this URL or save it" but not "open [with preferred viewer]" indeed. 

Note to self: Hmm. Tricky. The embedding setting is in konqueror, and frames are handled in khtml. This would require some setting for KHTMLPart::processObjectRequest to call KParts::BrowserRun::askSave instead of askEmbedOrSave...

PS: 57426 is unrelated, that one is about a form submission.
Oh, and you should try making KPDF the preferred viewer, it rocks :)
And then it's acceptable when embedded, which is another solution to this problem :)
Comment 2 Ferdi Meijerink 2005-05-12 14:59:37 UTC
I can confirm this bug too, kde 3.4
I created this testcase:
http://masterplan.student.utwente.nl/~termo/konqueror_frame_test.html

It also seems that this bug has a history.
See bug 43999.

Hope this'll get fixed soon :) (At least it'll have a few of my votes ;)

Cheers,

Ferdi
Comment 3 Ferdi Meijerink 2006-02-13 21:07:00 UTC
This bug still remains in KDE 3.5.1

Workaround: Set the "Ask whether to save to disk instead" option.
Comment 4 mario tuling 2008-05-05 01:12:07 UTC
confirmed in 4.0.3.. tricky
Comment 5 David Faure 2008-05-05 02:36:01 UTC
KDE4 update: the "embed" user settings are now in the file filetypesrc, so khtml could use that to decide whether to embed or not.