Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313437

Summary: [Accessibility] Switch to "Monitor" tab not always read by screenreader
Product: z_Archived Reporter: Mike Reid <mikereid>
Component: TPTPAssignee: Mike Reid <mikereid>
Status: CLOSED FIXED QA Contact: Kathy Chan <kathy>
Severity: normal    
Priority: P2 CC: ernest, jgwest, paulslau
Version: unspecifiedFlags: mikereid: pmc_approved? (oec)
ernest: pmc_approved+
kathy: pmc_approved? (kathy)
paulslau: pmc_approved+
kathy: pmc_approved? (jgwest)
jgwest: review+
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: adopter
Attachments:
Description Flags
patch
none
Clean up patch none

Description Mike Reid CLA 2010-05-18 16:38:44 EDT
When switching back to the monitor tab, either with the mouse or the mnemonic, some screen readers (JAWS 11 in particular) do not read the Monitor tab as having been selected. Instead, details about the select collector are read instead. The first time the monitor tab is selected is generally read properly. It is read properly if Shift+Tab is pressed to move focus back from the data collectors to the Monitor tab.

Reproduce:
1. Run > Profile Configurations
2. Create new External Java Application
3. Switch to Monitors tab
4. Switch to Destination tab
5. Switch back to Monitor tab

The second time switching back to monitor tab is not read.
Comment 1 Mike Reid CLA 2010-05-18 17:03:56 EDT
The problem is caused by the initialization that we perform when activating the Monitor tab. We actually query the data collectors twice in order to ensure we correctly respond to changes on the Hosts tab (see bug 291702 for details). This causes some focus shifting to occur which confuses the screen reader and the tab name is not read.

I have a patch that corrects the problem. It re-implements the caching removed by bug 291702 so that we only fetch the data collectors when needed. The downside is that we also only fetch the collectors when the Monitor tab is activated. This means that the user must visit the Monitor tab in order for the default collector(s) to be selected and the "Profile" button to be enabled. Current behaviour is that the defaults are pre-populated and the user does not have to visit the Monitor tab in order to launch.

Requesting comment on whether or not this change is acceptable?
Comment 2 Mike Reid CLA 2010-05-20 17:54:20 EDT
Created attachment 169427 [details]
patch

With further investigation I was able to correct this without losing the auto-populate functionality of the Monitor tab.

Patch attached.
Comment 3 Mike Reid CLA 2010-05-20 17:59:31 EDT
Jon I think this falls under your umbrella. Can you review this patch?
Comment 4 Jonathan West CLA 2010-05-20 20:23:07 EDT
Patch is good!
Comment 5 Mike Reid CLA 2010-05-25 10:03:35 EDT
Created attachment 169832 [details]
Clean up patch

Attaching a new patch that cleans up the last one a little bit. Updated copyright notice and remove extraneous changes.
Comment 6 Kathy Chan CLA 2010-05-25 13:24:51 EDT
Mike, please fill in the PMC request template, which can be found in:

http://www.eclipse.org/tptp/home/documents/process/development/stop_ship_template.html

under Stop-ship Request Template.

Once it's been filled in, I'll give the project approval and post it for the rest of the PMC team for PMC approval.
Comment 7 Mike Reid CLA 2010-05-25 13:59:12 EDT
Requesting project lead approval to bring forward to PMC:

   1.   Explain why you believe this is a stop-ship defect. How does the defect manifest itself, and how will users of TPTP / consuming products be affected if the defect is not fixed?

This affects accessibility verification in a consuming product.

   2. Is there a work-around? If so, why do you believe the work-around is insufficient?

There is no workaround to get the correct output from the screenreader. However, this does not prevent navigability of the interface, it impacts discoverability of the interface.

   3. Is this a regression or API breakage? Explain.

No API breakage. This is newly reported, but it is conceivable it was introduced in bug 291702.

   4. Does this require new API?
No

   5. Who performed the code review?

Jonathan West

   6. Is there a test case attached to the bugzilla record?
No

   7. What is the nature of the fix? What is the scope of the fix? What is the risk associated with this fix?

The fix is a simple bugfix, no new functionality is exposed. Scope is contained to the "Monitor" tab which lists available profiling data collectors. Risk is low, changes are not extensive and similar logic has already been in place prior to this fix.

   8. Is this fix related to any standards that TPTP adheres to? If so, who has validated that the fix continues to adhere to the standard?

No.
Comment 8 Kathy Chan CLA 2010-05-25 14:24:34 EDT
Requesting PMC approval for TPTP 4.7.
Comment 9 Jonathan West CLA 2010-05-26 15:30:52 EDT
Patch checked into HEAD w/ PMC approval.
Comment 10 Mike Reid CLA 2010-07-13 10:51:05 EDT
Verified in 4.7 GA.
Comment 11 Kathy Chan CLA 2010-11-18 23:29:45 EST
Closing.