[orca] Fix presentation of Thunderbird new feed wizard
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix presentation of Thunderbird new feed wizard
- Date: Fri, 26 Aug 2022 15:44:32 +0000 (UTC)
commit 994f3e18758b642398935096097d6221239f629d
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Aug 26 17:37:08 2022 +0200
Fix presentation of Thunderbird new feed wizard
We automatically present static text content in a newly-shown dialog
because that content is not something which would likely gain focus,
and users should not have to flat review it. The code that looks for
the static text content includes a crude heuristic (minimum word count,
which defaults to 3) that attempts to catch and eliminate labels believed
to be labeling something but lacking the proper relationship. In the case
of the new feed wizard, there's static text consisting of only two words.
This commit sets the minimum word count for Gecko-based apps to 1. If
this results in extra text being presented due to the lack of proper
relationship, that will need to be fixed in the Gecko app.
Fixes issue #211
src/orca/scripts/toolkits/Gecko/script_utilities.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script_utilities.py
b/src/orca/scripts/toolkits/Gecko/script_utilities.py
index 671eb7a49..a7acf4629 100644
--- a/src/orca/scripts/toolkits/Gecko/script_utilities.py
+++ b/src/orca/scripts/toolkits/Gecko/script_utilities.py
@@ -355,3 +355,6 @@ class Utilities(web.Utilities):
def localizeTextAttribute(self, key, value):
value = value.replace("-moz-", "")
return super().localizeTextAttribute(key, value)
+
+ def unrelatedLabels(self, root, onlyShowing=True, minimumWords=3):
+ return super().unrelatedLabels(root, onlyShowing, minimumWords=1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]