After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 385949 - [blocked] Orca has traceback with Firefox 3.0 nightly when testing bookmarks.
[blocked] Orca has traceback with Firefox 3.0 nightly when testing bookmarks.
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.17.x
Other Linux
: Normal normal
: ---
Assigned To: Willie Walker
Orca Maintainers
Depends on:
Blocks: 404403
 
 
Reported: 2006-12-14 18:58 UTC by Rich Burridge
Modified: 2007-03-14 14:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
debug.out generated during test (159.64 KB, text/plain)
2006-12-14 18:59 UTC, Rich Burridge
  Details
Patch to prevent stack trace (3.10 KB, patch)
2006-12-15 16:28 UTC, Willie Walker
committed Details | Review
conservative patch to handle a recent change in FF3 (1.76 KB, patch)
2007-02-11 22:17 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Rich Burridge 2006-12-14 18:58:42 UTC
Testing Firefox 3.0 nightly build on Ubuntu Edgy.
In particular testing bookmarks and got a traceback:

Child at index 0 is not an Accessible

Traceback (most recent call last):
  • File "/usr/lib/python2.4/site-packages/orca/focus_tracking_presenter.py", line 500 in _processObjectEvent
    s.processObjectEvent(event)
  • File "/usr/lib/python2.4/site-packages/orca/script.py", line 215 in processObjectEvent
    self.listeners[key](event)
  • File "/usr/lib/python2.4/site-packages/orca/Gecko.py", line 822 in onFocus
    default.Script.onFocus(self, event)
  • File "/usr/lib/python2.4/site-packages/orca/default.py", line 1925 in onFocus
    orca.setLocusOfFocus(event, newFocus)
  • File "/usr/lib/python2.4/site-packages/orca/orca.py", line 196 in setLocusOfFocus
    orca_state.locusOfFocus)
  • File "/usr/lib/python2.4/site-packages/orca/focus_tracking_presenter.py", line 803 in locusOfFocusChanged
    newLocusOfFocus)
  • File "/usr/lib/python2.4/site-packages/orca/Gecko.py", line 900 in locusOfFocusChanged
    newLocusOfFocus)
  • File "/usr/lib/python2.4/site-packages/orca/default.py", line 1572 in locusOfFocusChanged
    self.updateBraille(newLocusOfFocus)
  • File "/usr/lib/python2.4/site-packages/orca/Gecko.py", line 917 in updateBraille
    default.Script.updateBraille(self, obj, extraRegion)
  • File "/usr/lib/python2.4/site-packages/orca/default.py", line 1849 in updateBraille
    result = self.brailleGenerator.getBrailleRegions(obj)
  • File "/usr/lib/python2.4/site-packages/orca/Gecko.py", line 247 in getBrailleRegions
    return braillegenerator.BrailleGenerator.getBrailleRegions(\
  • File "/usr/lib/python2.4/site-packages/orca/braillegenerator.py", line 1333 in getBrailleRegions
    result = generator(obj)
  • File "/usr/lib/python2.4/site-packages/orca/Gecko.py", line 220 in _getBrailleRegionsForComboBox
    if menu.name:
AttributeError: 'NoneType' object has no attribute 'name'

Full debug.out to be attached...
Comment 1 Rich Burridge 2006-12-14 18:59:20 UTC
Created attachment 78382 [details]
debug.out generated during test
Comment 2 Willie Walker 2006-12-14 22:31:51 UTC
Here's one way to reproduce the stacktrace: press Ctrl+D to bring up the "Add Bookmark" page.  When the "Name:" entry field gets focus, Orca seems to issue the stack trace.
Comment 3 Willie Walker 2006-12-14 23:24:21 UTC
This appears to be an accessibility implementation bug in Firefox.  In looking at the "NameL:" entry area, it is a combo box, but is doesn't provide any text or children (i.e., we cannot get to the text being displayed).  I'll dig into this some more and log a bug if need be.
Comment 4 Willie Walker 2006-12-15 16:17:08 UTC
I'll be adding a patch to prevent the traceback, but there's still a looming Firefox bug that prevents access to the "Name:" field: https://bugzilla.mozilla.org/show_bug.cgi?id=363955. Marking this as blocked.
Comment 5 Willie Walker 2006-12-15 16:28:24 UTC
Created attachment 78436 [details] [review]
Patch to prevent stack trace

This patch prevents the stack trace, but access to the component in question (the "Name:" combobx in the "Add Bookmark" dialog) is broken due to an underlying Firefox accessibility implementation bug.
Comment 6 Joanmarie Diggs (IRC: joanie) 2007-02-11 21:23:40 UTC
It looks like they recently fixed the issue with the Name: combo box. Coincidentally or otherwise, it seems that we now get an error from that dialog's Create In combo box.

From this build: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a3pre) Gecko/20070211 Minefield/3.0a3pre

I get this focus event and error in Orca:

vvvvv PROCESS OBJECT EVENT focus: vvvvv
OBJECT EVENT: focus:                                   detail=(0,0)
    app.name='Minefield'          name='Create in:' role='combo box' state='ENABLED EXPANDABLE FOCUSABLE FOCUSED HORIZONTAL OPAQUE SENSITIVE SHOWING VISIBLE' relations='LABELLED_BY'
LOCUS OF FOCUS: app='Minefield' name='Create in:' role='combo box'
                event='focus:'
GENERATOR: _getBrailleRegionsForDialog
           obj             = Add Bookmark
           role            = dialog
GENERATOR: _getBrailleRegionsForAlert
           obj             = Add Bookmark
           role            = dialog
GENERATOR: _getDefaultBrailleRegions
           obj             = Add Bookmark
           role            = dialog
GENERATOR: _getDefaultBrailleRegions
           obj             = Minefield
           role            = application
GENERATOR: Gecko._getBrailleRegionsForComboBox
           obj             = Create in:
           role            = combo box

Traceback (most recent call last):
  • File "/usr/lib/python2.5/site-packages/orca/focus_tracking_presenter.py", line 507 in _processObjectEvent
    s.processObjectEvent(event)
  • File "/usr/lib/python2.5/site-packages/orca/script.py", line 224 in processObjectEvent
    self.listeners[key](event)
  • File "/usr/lib/python2.5/site-packages/orca/Gecko.py", line 1207 in onFocus
    default.Script.onFocus(self, event)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 1931 in onFocus
    orca.setLocusOfFocus(event, newFocus)
  • File "/usr/lib/python2.5/site-packages/orca/orca.py", line 196 in setLocusOfFocus
    orca_state.locusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/focus_tracking_presenter.py", line 819 in locusOfFocusChanged
    newLocusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/Gecko.py", line 1376 in locusOfFocusChanged
    newLocusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 1574 in locusOfFocusChanged
    self.updateBraille(newLocusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/Gecko.py", line 1393 in updateBraille
    default.Script.updateBraille(self, obj, extraRegion)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 1855 in updateBraille
    result = self.brailleGenerator.getBrailleRegions(obj)
  • File "/usr/lib/python2.5/site-packages/orca/Gecko.py", line 381 in getBrailleRegions
    self, obj, groupChildren)
  • File "/usr/lib/python2.5/site-packages/orca/braillegenerator.py", line 1336 in getBrailleRegions
    result = generator(obj)
  • File "/usr/lib/python2.5/site-packages/orca/Gecko.py", line 278 in _getBrailleRegionsForComboBox
    regions.append(braille.Region(item.name))
AttributeError: 'NoneType' object has no attribute 'name'

Comment 7 Joanmarie Diggs (IRC: joanie) 2007-02-11 22:17:25 UTC
Created attachment 82345 [details] [review]
conservative patch to handle a recent change in FF3

This solves the problem in my previous comment.
Comment 8 Joanmarie Diggs (IRC: joanie) 2007-02-11 23:18:01 UTC
I just tested the above patch on both Edgy and Feisty using versions of FF3 before their combo box change and after, examining both combo boxes in FF dialogs and those within web pages.  Everything seems to check out okay. 

As per Will, the patch -- with additional comments added for better documentation -- has been committed.

Will, now that we don't have tracebacks, and the Add Bookmark dialog is behaving properly, I think this bug can be closed.
Comment 9 Willie Walker 2007-03-14 14:41:21 UTC
Closing as FIXED.  Thanks Joanie!