Issue 101012 - object:active-descendant-changed any_data field contains previous active descendant instead of current active descendant in Hyperlink dialog
Summary: object:active-descendant-changed any_data field contains previous active desc...
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOO310m11
Hardware: Sun Solaris
: P3 Trivial (vote)
Target Milestone: OOo 3.2
Assignee: eric.savary
QA Contact: issues@framework
URL:
Keywords: accessibility, needmoreinfo
: 102879 (view as issue list)
Depends on:
Blocks:
 
Reported: 2009-04-10 15:00 UTC by williewalker
Modified: 2010-01-08 09:18 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Test application from opening comment as a separate file. (293 bytes, text/plain)
2009-04-10 15:02 UTC, williewalker
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description williewalker 2009-04-10 15:00:10 UTC
The object:active-descendant-changed any_data field contains previous active
descendant instead of current active descendant in the Hyperlink dialog.

1) Save this small python script to a file:

import pyatspi
def callback(event):
    print "Event:", event
    print "Source:", event.source
    print "any_data:", event.any_data
    print
pyatspi.Registry.registerEventListener(callback,
                                       "object:active-descendant-changed")
pyatspi.Registry.start()

2) Run the script in a terminal using "python <filename>" and make it's visible
for observations as you perform the remaining steps in this test case.

3) Run OOo writer.  Go to Insert->Hyperlink.

4) Arrow up and down the "Internet", "Mail & News", "Document", and "New
Document" choices on the left hand side.  Notice that the any_data field being
output by the test application incorrectly refers to the previously selected
object instead of the currently selected object.

5) Arrow up and down the "File type" box in the same dialog.  Notice that the
any_data field being output by the test application correctly refers to the
currently selected item.

The impact of this bug is that screen reader users become confused about what is
actually selected in the dialog.  :-(

The Orca bug tracking this is http://bugzilla.gnome.org/show_bug.cgi?id=578097
Comment 1 williewalker 2009-04-10 15:02:23 UTC
Created attachment 61506 [details]
Test application from opening comment as a separate file.
Comment 2 Olaf Felka 2009-04-29 12:09:39 UTC
What OOo version are you using? What OS?
Comment 3 eric.savary 2009-04-29 12:28:33 UTC
@williewalker: Please always assign to me for A11y issues.
Please also mention the OOo version. I guess you are on Nevada?
Comment 4 williewalker 2009-04-29 13:24:25 UTC
@es - I confirmed this on OpenSolaris 2008.11, but the person opening the Orca
bug (http://bugzilla.gnome.org/show_bug.cgi?id=578097) mentions the following in
the opening comment for that bug:

$ apt-cache policy openoffice.org-writer
openoffice.org-writer:
  Installed: 1:3.0.1-5ubuntu2
  Candidate: 1:3.0.1-5ubuntu2
  Version table:
 *** 1:3.0.1-5ubuntu2 0
        500 http://in.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: gnome-orca 2.26.0-0ubuntu1
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_IN
 SHELL=/bin/bash
SourcePackage: gnome-orca
Uname: Linux 2.6.28-9-generic i686

I suspect this probably is not an OS-specific issue.  The test application I've
attached to this bug is a Python script which doesn't require any compilation or
build environment.  It should also run without modification on any platform
where pyatspi is available (e.g., OpenSolaris, Ubuntu, etc.).  Confirming the
problem with the test application should take only a few minutes, and the
complete instructions for reproducing the problem are in the opening comment for
this bug - please give it a try.
Comment 5 eric.savary 2009-05-06 15:10:23 UTC
@OD: as described.

- run the attached script in a terminal
- in OOo Writer: Insert - Hyperlink
- Cycle between the tab pages "Internet", "Mail & News", "Document", and "New
Document"
-> the terminal output for "any_data" is always the last selected one, not the
current one

Note: this only happens when cycling with the *keyboard* 
Comment 6 Oliver-Rainer Wittmann 2009-05-27 14:01:58 UTC
fix in progress in cws swa11y32.

defect cause:
vcl event <list box entry selected> is also emitted, when a certain entry is
deselected in the icon choice control.
When you observe the output of the python script, you will see that on each
cursor key hit _two_ object:active-descendent-changed event are emitted.

solution:
suppress the sending of vcl event <list box entry selected>, when a certain
entry is deselected.
Comment 7 Oliver-Rainer Wittmann 2009-05-27 14:19:01 UTC
But, I could not reproduce the described defect with recent version of OOo
(DEV300m46) when arrow up and down in the "File type" list box of the
"Hyperlink" dialog.
Comment 8 Oliver-Rainer Wittmann 2009-05-27 14:50:13 UTC
fixed in cws swa11y32 - changed file:
/svtools/source/contnr/imivctl1.cxx, rev. 272354
Comment 9 mikhail.voytenko 2009-06-30 13:17:49 UTC
*** Issue 102879 has been marked as a duplicate of this issue. ***
Comment 10 Oliver-Rainer Wittmann 2009-07-28 13:52:38 UTC
OD->ES: Checked in internal installation set of cws swa11y32_2nd - please verify
Comment 11 williewalker 2009-08-04 15:44:31 UTC
This fix has been confirmed by the Orca team using the
swa11y32_2nd_en-US_SolarisIntel.tar file Thomas Lange made for me
(300m51(Build:9408)[CWS:swa11y32_2nd]).

Many thanks!
Comment 12 eric.savary 2009-08-04 23:03:12 UTC
Thanx for verifying!
Comment 13 malte_timmermann 2010-01-08 09:18:06 UTC
Fixed and integrated => closing now..