[orca] Remove attempt to filter out duplicate names calculated by content
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Remove attempt to filter out duplicate names calculated by content
- Date: Wed, 22 Apr 2020 14:43:24 +0000 (UTC)
commit 41615728b915da2b694989e27c7050e40094f190
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Apr 22 10:36:55 2020 -0400
Remove attempt to filter out duplicate names calculated by content
A workaround for a chattiness problem was introduced a couple of years
ago to deal with duplicate names resulting from name being calculated
from contents as per AccName. And we've been modifying the workaround
ever since. This sort of thing should be addressed in the AccName script,
user agents, and authoring practices rather than hacked around here.
src/orca/scripts/web/speech_generator.py | 7 -------
1 file changed, 7 deletions(-)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index 6e92669c8..0310303f3 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -347,13 +347,6 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
return []
role = args.get('role', obj.getRole())
- alwaysPresent = [pyatspi.ROLE_PUSH_BUTTON,
- pyatspi.ROLE_IMAGE]
-
- if obj.parent and obj.name and obj.name == obj.parent.name \
- and obj != orca_state.locusOfFocus and role not in alwaysPresent \
- and not args.get('inFlatReview'):
- return []
# TODO - JD: Once the formatting strings are vastly cleaned up
# or simply removed, hacks like this won't be needed.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]