Bug 36912

Summary: Postscript print shows followed links
Product: [Applications] konqueror Reporter: eric
Component: khtml printingAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: wishlist CC: finex, martin.partel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description eric 2002-01-06 20:57:36 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           konqueror
Version:           KDE 2.2.2 
Severity:          normal
Installed from:    RedHat RPMs
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: Not Specified

I am looking at an HTML document on my local filesystem.  It has hyperlinks to other remote documents.  I had followed some of the links but not all of them.  I printed the page to a postscript file and then looked at with `gv' before killing a tree.  To my surprise the postscript image of the page *exactly* mirrors the state of my browser as far as followed and unfollowed links are concerned.  That is the followed links are purple but the unfollowed links are blue.

This is IMHO *too* accurate a representation for most printouts.  In almost every case I would prefer to have the postscript file show all of the links in their "pristine" unvisited state (blue).  I suppose that there are cases in which it would be useful to have a pixel for pixel replica of the browser's state but that should be an option and not the default.

(Submitted via bugs.kde.org)
Comment 1 Kurt Pfeifle 2007-01-05 23:58:46 UTC
FWIW, I tested this with various other browsers:

IE 5.0, 5.5, 6.0 + 7.0 (on Win32); Opera 9.1 (on Linux); Firefox 1.5 + 2.0 (on Linux): they *all* show the same behavior (link colors change in printout if the links have been followed).

Sure, it would be a nice feature if that feature could be changed by users:

 (a) it may be irrelevant on a paper printout (and be visually unpleasant);
 (b) it may even be an unwanted leakage of privacy if certain links in some
     printouts are highlighted as "been visited".

Should this ever be implemented, then probably only in the context of an overall overhaul of the printing features of Konqueror/KHTML for KDE4. If that is done, please also include an option remove colorizing links altogether in the printouts.

-------------
(Note, that with most browsers you can disable the color change of followed links altogether.)
Comment 2 Kurt Pfeifle 2007-01-08 00:15:57 UTC
This is very similar (possibly the same part of the code) to bug 122123 [ http://bugs.kde.org/show_bug.cgi?id=122123 ] which complains that printouts show "box" highlights of links that where middle-clicked (opened in new window/tab). 
Comment 3 Frank Reininghaus 2008-06-27 20:09:13 UTC
*** Bug 122123 has been marked as a duplicate of this bug. ***
Comment 4 FiNeX 2008-11-19 23:44:10 UTC
Anyway, the "print CSS" should manage this behaviour.
Comment 5 Christoph Cullmann 2024-05-06 20:57:32 UTC
Dear user,

KHTML (and KJS) was a long time more or less unmaintained and got removed in KF6.

Please migrate to use a QWebEngine based HTML component.

We will do no further fixes or improvements to the KF5 branches of these components beside important security fixes.

For security issues, please see:

https://kde.org/info/security/

Sorry that we did not fix this issue during the life-time of KHTML.

Greetings
Christoph Cullmann