<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>24820</bug_id>
          
          <creation_ts>2001-04-26 15:33:01 +0000</creation_ts>
          <short_desc>visited links don&apos;t change colour until after they are hovered over with the mouse.</short_desc>
          <delta_ts>2023-12-26 16:52:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>khtml part</component>
          <version>4.5.4</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>LO</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mlord</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>arthur</cc>
    
    <cc>bluedzins</cc>
    
    <cc>code</cc>
    
    <cc>dev+kde</cc>
    
    <cc>georg.wittenburg</cc>
    
    <cc>grundleborg</cc>
    
    <cc>kde</cc>
    
    <cc>kde</cc>
    
    <cc>l.savernik</cc>
    
    <cc>lex.lists</cc>
    
    <cc>opensource</cc>
    
    <cc>romainguinot</cc>
    
    <cc>samuel.brack</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>535</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>29996</commentid>
    <comment_count>0</comment_count>
    <who name="">mlord</who>
    <bug_when>2001-04-26 15:27:56 +0000</bug_when>
    <thetext>(*** This bug was imported into bugs.kde.org ***)

Package:           khtml
Version:           3.0 (using KDE 2.1.1 )
Severity:          normal
Installed from:    Linux-Mandrake 8.0 i586
Compiler:          gcc version 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)
OS:                Linux
OS/Compiler notes: 2.4.3-ac12

Viewing web page at http://www.mail-archive.com/cooker@linux-mandrake.com/

Click with middle mouse button on any link on the page
to open it in a new window (works fine).

The clicked on link remains &quot;blue&quot; (virgin) instead of changing color to show that it has been visited.  The next time the mouse cursor is hovered over the link it belatedly changes color (to red).

Minor nuisance.

(Submitted via bugs.kde.org)
(Called from KBugReport dialog. Fields OS manually changed)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105603</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Dabell">jim</who>
    <bug_when>2002-11-14 15:50:21 +0000</bug_when>
    <thetext>Reproducible in 3.1rc3. 
 
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180960</commentid>
    <comment_count>2</comment_count>
    <who name="Luis Carvalho">lpassos</who>
    <bug_when>2003-11-27 21:43:59 +0000</bug_when>
    <thetext>Seems fixed in CVS 2003-11-11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186349</commentid>
    <comment_count>3</comment_count>
    <who name="Leo Savernik">l.savernik</who>
    <bug_when>2003-12-15 18:56:05 +0000</bug_when>
    <thetext>no, it&apos;s not</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>192634</commentid>
    <comment_count>4</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2004-01-07 22:45:03 +0000</bug_when>
    <thetext>*** Bug 72102 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194083</commentid>
    <comment_count>5</comment_count>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2004-01-12 13:53:33 +0000</bug_when>
    <thetext>*** Bug 72454 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194146</commentid>
    <comment_count>6</comment_count>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2004-01-12 17:27:55 +0000</bug_when>
    <thetext>*** Bug 72454 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201186</commentid>
    <comment_count>7</comment_count>
    <who name="Mathieu Jobin">opensource</who>
    <bug_when>2004-02-03 00:25:56 +0000</bug_when>
    <thetext>using KDE 3.2RC1

the link change color perfectly, but you have to quit the selection. (click on the background.) 

when the link is no longer selected (square around it) it becomes to another color.

I think that does not even work on IE, you need to press F5, for visited links to update color. ;)

i suggest to close the bug.

the only thing that could be added is to auto unselect the link as we open a new window. which COULD be annoying. i dont know.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214534</commentid>
    <comment_count>8</comment_count>
    <who name="Sean Lynch">techniq35</who>
    <bug_when>2004-03-12 04:13:27 +0000</bug_when>
    <thetext>This is not the case for me.  I browse the CVS archives at lists.kde.org daily  and use middle mouse clicking/tab browsing when I see a commit which I want to read on.  Currently the color of the selected link doesn&apos;t change until I remouse over it after the page on the tab has loaded (doesn&apos;t change when I deselect the link, or anything else.  Usually what I have to do is after I&apos;ve loaded a few links I&apos;ll move the mouse up and down the page a few times to change all the visited link&apos;s color so I know if there are any others I would like.  It would be nice if the page changed color right after it is selected (after the active state color change that is).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230532</commentid>
    <comment_count>9</comment_count>
    <who name="">mlord</who>
    <bug_when>2004-05-10 21:37:14 +0000</bug_when>
    <thetext>Retested with KDE-3.2.2 (Fedora Core2-test3):

Link does not change colour until moused-over after initial selection.
Better than the original condition, but still not perfect.

Keep open, I think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230561</commentid>
    <comment_count>10</comment_count>
    <who name="">mlord</who>
    <bug_when>2004-05-10 22:16:37 +0000</bug_when>
    <thetext>EDIT: retested with Fedora Core-2-RC1.
Link does not change colour until moused-over after initial selection.
Better than the original condition, but still not perfect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247252</commentid>
    <comment_count>11</comment_count>
    <who name="Michael Jahn">michael.jahn</who>
    <bug_when>2004-07-09 21:42:57 +0000</bug_when>
    <thetext>Still valid with 3.3 Beta 1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>249312</commentid>
    <comment_count>12</comment_count>
    <who name="Jo Øiongen">jo.oiongen</who>
    <bug_when>2004-07-16 13:00:58 +0000</bug_when>
    <thetext>*** Bug 65915 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>285662</commentid>
    <comment_count>13</comment_count>
    <who name="David Coulm">bugs.kde.org</who>
    <bug_when>2004-11-14 12:28:14 +0000</bug_when>
    <thetext>Problem present in konqueror 3.3.1 (debian sid).

 - Link change colour if I leave mouse cursor over the link until the selection rectangle appears.
 - Link does not change color if I move mouse cursor immediately after clicking on a link (link will be then colored if i move back mouse cursor over the link).

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>285676</commentid>
    <comment_count>14</comment_count>
    <who name="GML">gmludo</who>
    <bug_when>2004-11-14 13:12:03 +0000</bug_when>
    <thetext>I confirm the problem in debian sid and konqueror 3.3.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>313926</commentid>
    <comment_count>15</comment_count>
    <who name="Vedran Ljubovic">vljubovic</who>
    <bug_when>2005-02-14 12:49:43 +0000</bug_when>
    <thetext>Still present in 3.4 beta2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>364296</commentid>
    <comment_count>16</comment_count>
    <who name="lexual">lex.lists</who>
    <bug_when>2005-08-10 05:44:02 +0000</bug_when>
    <thetext>bug still present for 3.4.1 using kubuntu !!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>366343</commentid>
    <comment_count>17</comment_count>
    <who name="Andrey Nikanorov">nikanorov</who>
    <bug_when>2005-08-17 15:20:20 +0000</bug_when>
    <thetext>Still present in 3.4.2, Suse 9.3 rpm&apos;s.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404885</commentid>
    <comment_count>18</comment_count>
    <who name="Neil Skrypuch">kde</who>
    <bug_when>2006-01-09 22:57:48 +0000</bug_when>
    <thetext>Still present in 3.5 with Gentoo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>434302</commentid>
    <comment_count>19</comment_count>
    <who name="lexual">lex.lists</who>
    <bug_when>2006-04-27 05:50:47 +0000</bug_when>
    <thetext>still valid, 3.5.2 from debian.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>434623</commentid>
    <comment_count>20</comment_count>
      <attachid>15805</attachid>
    <who name="Allan Sandfeld">kde</who>
    <bug_when>2006-04-28 02:08:18 +0000</bug_when>
    <thetext>Created attachment 15805
Proposed patch

I think this works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447455</commentid>
    <comment_count>21</comment_count>
    <who name="Allan Sandfeld">kde</who>
    <bug_when>2006-06-17 23:49:44 +0000</bug_when>
    <thetext>No my patch doesn&apos;t work. It either requires a signal from the HistoryProvider to inform when the history changes, or a hack pretend the history is instantly updated when clicking a button.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>496992</commentid>
    <comment_count>22</comment_count>
    <who name="Martin Koller">martin</who>
    <bug_when>2006-12-30 17:52:04 +0000</bug_when>
    <thetext>SVN commit 617941 by mkoller:

BUG: 24820

immediately redraw visited links with the respective color when the page
got loaded and inserted into the history


 M  +3 -3      khtml/html/html_documentimpl.cpp  
 M  +1 -0      kparts/historyprovider.cpp  
 M  +5 -0      kparts/historyprovider.h  


--- branches/KDE/3.5/kdelibs/khtml/html/html_documentimpl.cpp #617940:617941
@@ -78,11 +78,11 @@
     m_doAutoFill = false;
 
 /* dynamic history stuff to be fixed later (pfeiffer)
-    connect( KHTMLFactory::vLinks(), SIGNAL( inserted( const QString&amp; )),
-             SLOT( slotHistoryChanged() ));
     connect( KHTMLFactory::vLinks(), SIGNAL( removed( const QString&amp; )),
              SLOT( slotHistoryChanged() ));
 */
+    connect( KHTMLFactory::vLinks(), SIGNAL( inserted( const QString&amp; ) ),
+             SLOT( slotHistoryChanged() ));
     connect( KHTMLFactory::vLinks(), SIGNAL( cleared()),
              SLOT( slotHistoryChanged() ));
 }
@@ -222,7 +222,7 @@
 
 void HTMLDocumentImpl::slotHistoryChanged()
 {
-    if ( true || !m_render ) // disabled for now
+    if ( !m_render )
         return;
 
     recalcStyle( Force );
--- branches/KDE/3.5/kdelibs/kparts/historyprovider.cpp #617940:617941
@@ -70,6 +70,7 @@
 {
     // no need to allocate memory, we only want to have fast lookup, no mapping
     d-&gt;dict.replace( item, (void*) 1 );
+    emit inserted( item );
 }
 
 void HistoryProvider::remove( const QString&amp; item )
--- branches/KDE/3.5/kdelibs/kparts/historyprovider.h #617940:617941
@@ -89,6 +89,11 @@
      */
     void updated( const QStringList&amp; items );
 
+    /**
+     * Emitted after the item has been inserted
+     */
+    void inserted( const QString&amp; item );
+
 private:
     static HistoryProvider *s_self;
 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>505251</commentid>
    <comment_count>23</comment_count>
    <who name="Leo Savernik">l.savernik</who>
    <bug_when>2007-01-30 18:25:40 +0000</bug_when>
    <thetext>SVN commit 628618 by savernik:

Reverting r617941. This fixes jumping to the top right before loading a
new page and also fixes page loading time increase.

Attention packagers! Please include this patch in new versions of your
khtml-3.5.6 packages. Web surfing experience can be considered broken
without it.

CCMAIL: kde-packager@kde.org
BUG: 140768
CCBUG: 140777    
CCBUG: 24820


 M  +1 -1      html_documentimpl.cpp  


--- branches/KDE/3.5/kdelibs/khtml/html/html_documentimpl.cpp #628617:628618
@@ -222,7 +222,7 @@
 
 void HTMLDocumentImpl::slotHistoryChanged()
 {
-    if ( !m_render )
+    if ( true || !m_render )
         return;
 
     recalcStyle( Force );
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>505257</commentid>
    <comment_count>24</comment_count>
    <who name="Leo Savernik">l.savernik</who>
    <bug_when>2007-01-30 18:32:11 +0000</bug_when>
    <thetext>Unfixing this bug. The fix caused major performance degradation and some other quirks. Until there&apos;s an efficient solution, this bug will stay open.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>537530</commentid>
    <comment_count>25</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2007-07-23 03:10:24 +0000</bug_when>
    <thetext>SVN commit 691149 by ggarand:

revert the instantly-colored-visited-links patch in trunk too.
It does not work.

CCBUG: 24820




 M  +1 -1      html_documentimpl.cpp  


--- trunk/KDE/kdelibs/khtml/html/html_documentimpl.cpp #691148:691149
@@ -216,7 +216,7 @@
 
 void HTMLDocumentImpl::slotHistoryChanged()
 {
-    if ( !m_render )
+    if ( true || !m_render )
         return;
 
     recalcStyle( Force );
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>562736</commentid>
    <comment_count>26</comment_count>
    <who name="lexual">lex.lists</who>
    <bug_when>2007-12-13 00:05:34 +0000</bug_when>
    <thetext>bug still valid for kde4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>591422</commentid>
    <comment_count>27</comment_count>
    <who name="George Goldberg">grundleborg</who>
    <bug_when>2008-04-03 12:46:48 +0000</bug_when>
    <thetext>This bug is still present in svn trunk r790203.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>591981</commentid>
    <comment_count>28</comment_count>
    <who name="Martin Fitzpatrick">martin.fitzpatrick</who>
    <bug_when>2008-04-05 20:38:15 +0000</bug_when>
    <thetext>Confirmed on Konq/4.0.3 although the behaviour is that the link changes colour once deselected (click on background).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>601507</commentid>
    <comment_count>29</comment_count>
    <who name="theron">foureyes779</who>
    <bug_when>2008-05-16 07:48:01 +0000</bug_when>
    <thetext>Strange thing is, it WORKSFORME using KDE4.0.3 and Konq. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>602027</commentid>
    <comment_count>30</comment_count>
    <who name="lexual">lex.lists</who>
    <bug_when>2008-05-18 03:45:25 +0000</bug_when>
    <thetext>I can confirm bug still exists with fedora 9&apos;s 4.0.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>639575</commentid>
    <comment_count>31</comment_count>
    <who name="Romain GUINOT">romainguinot</who>
    <bug_when>2008-08-20 22:34:59 +0000</bug_when>
    <thetext>Bug still exists with fedora 9 w/ 4.1.0... minor nuisance</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>688307</commentid>
    <comment_count>32</comment_count>
    <who name="Stephan Wassipaul">wassipaul</who>
    <bug_when>2008-12-28 15:27:34 +0000</bug_when>
    <thetext>Bug still exists in KDE 4.1.3, Kubuntu 8.10 packages</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>796368</commentid>
    <comment_count>33</comment_count>
    <who name="Georg Wittenburg">georg.wittenburg</who>
    <bug_when>2009-07-22 09:18:02 +0000</bug_when>
    <thetext>Still reproducible in 4.3 RC2 on Debian experimental.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>929839</commentid>
    <comment_count>34</comment_count>
    <who name="Georg Wittenburg">georg.wittenburg</who>
    <bug_when>2010-03-07 09:11:08 +0000</bug_when>
    <thetext>Fixed in 4.4.1. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>970395</commentid>
    <comment_count>35</comment_count>
    <who name="Frank Steinmetzger">dev+kde</who>
    <bug_when>2010-05-30 20:37:04 +0000</bug_when>
    <thetext>Georg, are you sure? I still observe the reported behavior in my 4.4.3.
I’d say it’s half-fixed. Suppose I middle-click on a link on BKO, there are two possible outcomes:

- I move the mouse away from the link before the new tab is loaded. Then the link’s colour changes from :hover back to :unvisited. Only when I move over it again after the tab is loaded, it becomes :visited.
- I stay over the link, thus its colour remains :active. I wait until the tab is loaded. Then I move the mouse away from the link, and it changes from :active right to :visited.

Perhaps you have such a fast connection that the first case doesn’t occur on your system, but here it takes a few seconds until the tab is finished.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>970784</commentid>
    <comment_count>36</comment_count>
    <who name="Georg Wittenburg">georg.wittenburg</who>
    <bug_when>2010-05-31 11:39:50 +0000</bug_when>
    <thetext>Actually, you&apos;re right. Hmm... I must&apos;ve mixed up Konqueror and Firefox when testing...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1066175</commentid>
    <comment_count>37</comment_count>
    <who name="Samuel Brack">samuel.brack</who>
    <bug_when>2010-12-31 16:17:35 +0000</bug_when>
    <thetext>Still valid in 4.5.4, updating version</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1506706</commentid>
    <comment_count>38</comment_count>
    <who name="Mathieu Jobin">opensource</who>
    <bug_when>2015-03-22 00:26:02 +0000</bug_when>
    <thetext>11 years later, I will make the same recommendation.

close this bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2276627</commentid>
    <comment_count>39</comment_count>
    <who name="Arthur Tadier">arthur</who>
    <bug_when>2023-12-26 16:52:29 +0000</bug_when>
    <thetext>Cannot reproduce in 22.12.3, it most certainly has been fixed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>15805</attachid>
            <date>2006-04-28 02:08:18 +0000</date>
            <delta_ts>2006-04-28 02:08:18 +0000</delta_ts>
            <desc>Proposed patch</desc>
            <filename>anchor-update.diff</filename>
            <type>text/plain</type>
            <size>733</size>
            <attacher name="Allan Sandfeld">kde</attacher>
            
              <data encoding="base64">SW5kZXg6IGh0bWwvaHRtbF9pbmxpbmVpbXBsLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBodG1sL2h0bWxf
aW5saW5laW1wbC5jcHAJKHJldmlzaW9uIDUzNDc3OCkKKysrIGh0bWwvaHRtbF9pbmxpbmVpbXBs
LmNwcAkod29ya2luZyBjb3B5KQpAQCAtMTUxLDExICsxNTEsMTEgQEAKIAkgICAgLy8gIyMjIGFs
c28gY2hlY2sgaWYgZm9jdXNlZCBub2RlIGlzIGVkaXRhYmxlIGlmIG5vdCBpbiBkZXNpZ25tb2Rl
LAogCSAgICAvLyBhbmQgcHJldmVudCBsaW5rIGxvYWRpbmcgdGhlbiAoTFMpCiAJICAgIGlmIChn
ZXREb2N1bWVudCgpLT52aWV3KCkgJiYgIWdldERvY3VtZW50KCktPmRlc2lnbk1vZGUoKSkgewot
CSAgICAgIGlmIChrKSAKLQkJY2xpY2soKTsKLQkgICAgICBlbHNlCi0JCWdldERvY3VtZW50KCkt
PnZpZXcoKS0+cGFydCgpLT4KLQkJICAgIHVybFNlbGVjdGVkKCB1cmwsIGJ1dHRvbiwgc3RhdGUs
IHV0YXJnZXQgKTsKKwkgICAgICAgaWYgKGspCisJCSAgY2xpY2soKTsKKwkgICAgICAgZWxzZQor
CQkgIGdldERvY3VtZW50KCktPnZpZXcoKS0+cGFydCgpLT51cmxTZWxlY3RlZCggdXJsLCBidXR0
b24sIHN0YXRlLCB1dGFyZ2V0ICk7CisgICAgICAgICAgICAgICBzZXRDaGFuZ2VkKCk7CiAJICAg
IH0KICAgICAgICAgfQogICAgICAgICBldnQtPnNldERlZmF1bHRIYW5kbGVkKCk7Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>