New issue
Advanced search Search tips

Issue 909003 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Jan 10
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug
Team-Accessibility



Sign in to add a comment

[Orca] window:activate events shouldn't be emitted when page tab switches in already-active window

Project Member Reported by joanmari...@gmail.com, Nov 27

Issue description

Steps to reproduce:
1. Launch the attached accessible-event listener in a terminal
2. Launch chromium with two different pages loaded
3. Use Alt+1 and Alt+2 several times to switch the active page tab

Expected results: window:activate events would not be emitted when the active page tab switches because the active window hasn't changed.

Actual results: window:activate events are emitted when the active page tab switches despite the fact that the active window hasn't changed.

Impact: Not a big deal because Orca can ignore such spurious events. But it would be nice to not get them in the first place. (Though see note below.)

Note: *If* there is a good reason to emit window:activate when the selected page tab switches, *then* it probably would make sense to emit window:deactivate for the tab that stopped being active. The listener is listening for those events as well; but deactivate events are only being emitted when the window is truly being deactivated (e.g. as a result of Alt+Tabbing to another window).
 
window.py
239 bytes View Download
Components: UI>Accessibility>Compatibility
Project Member

Comment 2 by bugdroid1@chromium.org, Jan 8

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6bf8cb2995fedb53e77ad9be9b1ededfb45b55a0

commit 6bf8cb2995fedb53e77ad9be9b1ededfb45b55a0
Author: Martin Robinson <mrobinson@igalia.com>
Date: Tue Jan 08 11:11:52 2019

Don't emit extra AtkWindow::activate events during element focus

We were unconditionally emitting these events for explicit focus
changes, which isn't something that we want to do. Instead only emit
them when the window is actually different.

Bug:  909003 
Change-Id: I9c6e3c9db4cd6dc5055a4b7b28cc98cc92ae0a5c
Reviewed-on: https://chromium-review.googlesource.com/c/1397988
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Martin Robinson <mrobinson@igalia.com>
Cr-Commit-Position: refs/heads/master@{#620681}
[modify] https://crrev.com/6bf8cb2995fedb53e77ad9be9b1ededfb45b55a0/ui/accessibility/platform/ax_platform_node_auralinux.cc
[modify] https://crrev.com/6bf8cb2995fedb53e77ad9be9b1ededfb45b55a0/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc

Owner: joanmari...@gmail.com
Status: Fixed (was: Untriaged)
Owner: mrobin...@igalia.com
I can confirm that the reported problem was solved (thanks!), but the change seems to have introduced a new problem: Before, extra window:activate and state-changed:active events were emitted. Now, extra state-changed:focused events are emitted. This appears to be due to an early return having been removed during the fix.
Status: Started (was: Fixed)
Project Member

Comment 6 by bugdroid1@chromium.org, Jan 10

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/4e00e614ced4cf12b881f2ab933eff703e8f1bb3

commit 4e00e614ced4cf12b881f2ab933eff703e8f1bb3
Author: Martin Robinson <mrobinson@igalia.com>
Date: Thu Jan 10 07:48:56 2019

Adjust emission of ATK activate events

Instead of sending an activate signal on toplevel windows whenever an
item gets focus, send it only when the window itself receives a focus
event. Additionally, don't send focus signals for toplevel windows at
all.

Bug:  909003 
Change-Id: I08bc81712da123cd07162a4f5e03d785c929f542
Reviewed-on: https://chromium-review.googlesource.com/c/1402447
Commit-Queue: Martin Robinson <mrobinson@igalia.com>
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#621495}
[modify] https://crrev.com/4e00e614ced4cf12b881f2ab933eff703e8f1bb3/ui/accessibility/platform/ax_platform_node_auralinux.cc
[modify] https://crrev.com/4e00e614ced4cf12b881f2ab933eff703e8f1bb3/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc

Owner: joanmari...@gmail.com
Status: Fixed (was: Started)
Status: Verified (was: Fixed)
Verifying. No more unexpected events. :) Thanks!!

Sign in to add a comment