[Webkit-unassigned] [Bug 72382] [Gtk] atk_text_get_text_at_offset() sometimes fails to provide the correct line
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 1 07:38:56 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=72382
--- Comment #8 from Joanmarie Diggs <jdiggs at igalia.com> 2012-02-01 07:38:56 PST ---
(In reply to comment #7)
> (From update of attachment 123799 [details])
> While smoke testing some stuff with MiniBrowser and Orca, I found out today that this patch seems to cause some hangs when browsing with the caret
Found an Orca-free way to reliably reproduce the hang:
1. Launch the tester (below)
2. Launch Epiphany
3. Navigate via the caret
I get reliable and immediate hangs in Epiphany, along with the following pyatspi lookup error:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pyatspi/registry.py", line 193, in eventWrapper
return callback(event)
File "./caret-moved.py", line 11, in listener
print text.getTextAtOffset(event.detail1, pyatspi.TEXT_BOUNDARY_LINE_START)
File "/usr/lib/python2.7/site-packages/pyatspi/text.py", line 443, in getTextAtOffset
ret = exwrap(Atspi.Text.get_text_at_offset, self.obj, offset, type)
File "/usr/lib/python2.7/site-packages/pyatspi/utils.py", line 339, in exwrap
raise LookupError
LookupError
BTW pyatspi LookupErrors are the spawn of <insert your personal devil here>. I'll poke Mike Gorse.
--------------------
#!/usr/bin/python
import pyatspi
def listener(event):
try:
text = event.source.queryText()
except NotImplementedError:
return
print text.getTextAtOffset(event.detail1, pyatspi.TEXT_BOUNDARY_LINE_START)
pyatspi.Registry.registerEventListener(listener, "object:text-caret-moved")
pyatspi.Registry.start()
--------------------
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list