Bug 68391 - [testcase] selection flickers (jumps to beginning of block element) over empty lines
Summary: [testcase] selection flickers (jumps to beginning of block element) over empt...
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 4.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 86980 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-16 20:44 UTC by cb-kde
Modified: 2013-11-30 10:51 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
shows that text selection behaves a bit strangely (200 bytes, text/html)
2003-11-18 22:47 UTC, Pablo Pita Leira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cb-kde 2003-11-16 20:44:22 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Summary:
Sometimes, certain text selection events cause Konqueror's vertical scroll position to change. These include selecting text in Konqueror, causing text to be deselected in Konqueror and selecting text in other applications.

To reproduce.
Tricky, as it's hard to understand what is going on. This way seems to work reliably, although it only demonstrates one form of the bug.

1. Load konqueror
2. visit http://kerneltrap.org/node/view/553/2148
3. Scroll down so that "On Sun, 2003-01-12 at 14:15, Linus Torvalds wrote:" is at the top of the screen
4. put the mouse over spin_trylock in the line below and slowly select text downwards.
5. As the cursor approaches "I would change it to something like the following" the window suddenly scrolls

This is a fairly recent regression in CVS.
Comment 1 Pablo Pita Leira 2003-11-18 22:47:56 UTC
Created attachment 3275 [details]
shows that text selection behaves a bit strangely

I wonder if this bug is a duplicate of
http://bugs.kde.org/show_bug.cgi?id=64348. 

Anyway, I can confirm the problem. I created a test case based on this html
code which uses the <pre> tag:

<html>
<body>
<pre>
1 1234567890
2 1234567890
3 1234567890

Click on the second line and carry on selecting to the third. Keep down again,
and see how the first line is selected.
</pre>
</body>
</html>
Comment 2 cb-kde 2003-11-18 23:27:35 UTC
Another real-world type example:
http://www.theregister.co.uk/content/6/34062.html

Load the page and triple-click on "With London". It seems to be caused by Konqueror trying to ensure that the end of the selected region is in the viewable area of the window.

Bug 64348 doesn't seem to be connected AFAICS.
Comment 3 Stephan Kulow 2003-11-24 12:54:08 UTC
please reopen if you still see it, but I think Leo fixed that on friday
Comment 4 Leo Savernik 2004-05-07 15:42:26 UTC
This bug is definitely not fixed. Reopening.
Comment 5 Mathieu Jobin 2004-05-29 02:00:23 UTC
still there, as in 3.2.2

im not sure if its khtml though.

well, to me, the window does not scroll, only the selection change weirdly.

Comment 6 Eduardo Robles Elvira 2004-06-13 21:03:32 UTC
Mathieu:

If it's not khtml which component could be ? I feel that it's khtml, it didn't happen in anyother palce to me, and more over it's not a konqueror's fault because in kdevelop khtml component the bug still appears.
 
As a good and obvious testcase, let's use, for example. This bug report. Go to the top of the page and try to select two or more paragraphs of the bug body. As the text is within a block with another table at the right side, the selection flickers over empty lines.

And both the kerneltrap and theregister webpages show the problem because of div elements. At least, it's clear that there's something wrong with them in theregister, as the problem _only_ appear in the lines with the The Register Newsletter image inside.

I hope it helps to figure out the problem and solve it,
      Edulix.
Comment 7 Leo Savernik 2004-08-20 12:20:54 UTC
It *is* khtml. It's just not easy to fix.
Comment 8 Leo Savernik 2004-08-20 13:45:34 UTC
*** Bug 86980 has been marked as a duplicate of this bug. ***
Comment 9 Marijn Schouten 2006-04-18 18:43:19 UTC
This is a duplicate of Bug 66583
Comment 10 Anne-Marie Mahfouf 2008-04-06 13:15:17 UTC
Still there from the test case
Comment 11 Andrea Iacovitti 2013-11-30 10:51:31 UTC
Can not reproduce using testcase a comment #1.
Works for me in kde 4.11.4