registry team mailing list archive
-
registry team
-
Mailing list archive
-
Message #19232
[Bug 36571] Re: strange cursor moving in textarea
Launchpad has imported 10 comments from the remote bug at
https://bugzilla.mozilla.org/show_bug.cgi?id=335810.
If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.
------------------------------------------------------------------------
On 2006-04-28T15:04:22+00:00 Ian Jackson wrote:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060413 Ubuntu/dapper Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060413 Ubuntu/dapper Firefox/1.5.0.1
To reproduce:
Build Firefox 1.5.0.2 with pango support enabled, eg as we do in Ubuntu:
./configure ... --enable-default-toolkit=gtk2 --enable-pango --enable-
system-cairo --enable-xft ...
Enter several lines of text in a text entry box (like the one I'm typing
into now).
Try positioning the cursor in various places and then pressing the up
and down arrow keys.
The cursor inevitably goes either to the beginning of the target line,
or the end, even if the horizontal position in the original line is
within the horizontal extent of the target line. This is suboptimal and
can make editing difficult.
When I run with MOZ_DISABLE_PANGO=1, I see the desired behaviour: the
horizontal position of the cursor is largely preserved.
This bug was reported by an Ubuntu user in our bug system, at
https://launchpad.net/distros/ubuntu/+source/firefox/+bug/36571
Reproducible: Always
Reply at: https://bugs.launchpad.net/firefox/+bug/36571/comments/4
------------------------------------------------------------------------
On 2006-04-28T16:01:08+00:00 Bugzilla-tecnocode wrote:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9a1) Gecko/20060426 Minefield/3.0a1 - Build ID: 0000000000
WFM with Pango and Cairo enabled, and it has done for as long as I can remember.
Reply at: https://bugs.launchpad.net/firefox/+bug/36571/comments/5
------------------------------------------------------------------------
On 2006-05-11T16:42:54+00:00 jes5199 wrote:
This bug is really, really annoying, and appears on:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.2)
Gecko/Debian-1.5.dfsg+1.5.0.2-3 Firefox/1.5.0.2
Reply at: https://bugs.launchpad.net/firefox/+bug/36571/comments/6
------------------------------------------------------------------------
On 2006-05-11T17:33:05+00:00 Ian Jackson wrote:
Just for reference, the Debian bug report about this is:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=365132
I have tested the upstream binary build for Linux i686 of 1.5.0.3 on
Ubuntu and I can't reproduce the bug in that case. I will investigate
some more
Reply at: https://bugs.launchpad.net/firefox/+bug/36571/comments/7
------------------------------------------------------------------------
On 2006-07-21T17:08:19+00:00 jes5199 wrote:
It's appearing in Fedora's build, as well.
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=198759
(In reply to comment #3)
> Just for reference, the Debian bug report about this is:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=365132
>
> I have tested the upstream binary build for Linux i686 of 1.5.0.3 on Ubuntu and
> I can't reproduce the bug in that case. I will investigate some more
>
Reply at: https://bugs.launchpad.net/firefox/+bug/36571/comments/8
------------------------------------------------------------------------
On 2006-08-14T19:05:47+00:00 X00000000 wrote:
I'm seeing this on a Gentoo system with SeaMonkey 1.0.4 too and it makes it
quite unusable.
I did some primitive debugging with printf's and believe that the bug is here:
http://lxr.mozilla.org/seamonkey/source/gfx/src/gtk/nsFontMetricsPango.cpp#987
pango_layout_xy_to_index() returns always FALSE when I'm moving the cursor up
or down in textboxes. This may be expected behavior because it's no error
indication but simply a flag telling if the position is inside the text frame,
and probably it's always outside because of non-matching y position.
I guess removing
// Jump to the end if it's not found.
if (!found) {
if (inx == 0)
retval = 0;
else if (trailing)
retval = aLength;
goto loser;
}
will fix this bug. Also note the missing |else| here. |trailing| ist TRUE by
random when moving up or down within text.
Also, AIUI, we shouldn't use pango_layout_xy_to_index() at all here, but
pango_layout_line_x_to_index().
Another bug is in
http://lxr.mozilla.org/seamonkey/source/layout/generic/nsTextFrame.cpp#4135
because error checking is missing there. |indx| may be -1 to indicate an
error. If that's the case the code should fall back to internal calculation
of the position.
I'm not going to investigate this in more depth because I'll switch to
MOZ_DISABLE_PANGO=1 anyways. Performance isn't acceptable with Pango on my
low-end box.
Component of this bug probably should be Core / GFX: Gtk, but I'm not allowed
to change it. And the normal component of <textarea> bugs would be
Core / Editor AFAIK.
Reply at: https://bugs.launchpad.net/firefox/+bug/36571/comments/9
------------------------------------------------------------------------
On 2006-08-14T19:52:53+00:00 X00000000 wrote:
Just for reference, the Gentoo bug report about this is
https://bugs.gentoo.org/show_bug.cgi?id=122464
Reply at: https://bugs.launchpad.net/firefox/+bug/36571/comments/10
------------------------------------------------------------------------
On 2006-09-06T07:13:28+00:00 Caillon wrote:
Created attachment 236935
Proposed fix
Patch by tagoh and behdad upstreamed from
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=198759
Reply at: https://bugs.launchpad.net/firefox/+bug/36571/comments/11
------------------------------------------------------------------------
On 2006-12-01T19:31:12+00:00 X00000000 wrote:
This should be fixed on the trunk by this checkin:
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=&branchtype=match&dir=&file=nsFontMetricsPango.cpp&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2006-09-10&maxdate=2006-09-20&cvsroot=%2Fcvsroot
Reply at: https://bugs.launchpad.net/firefox/+bug/36571/comments/13
------------------------------------------------------------------------
On 2007-01-19T04:30:42+00:00 Bzbarsky wrote:
This was checked in, right?
Resolving fixed.
Reply at: https://bugs.launchpad.net/firefox/+bug/36571/comments/14
** Changed in: firefox
Importance: Unknown => Medium
** Bug watch added: Gentoo Bugzilla #122464
http://bugs.gentoo.org/show_bug.cgi?id=122464
--
strange cursor moving in textarea
https://bugs.launchpad.net/bugs/36571
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for Debian.