[orca] Work around Gecko not pruning alt="" images from accessibility tree
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Work around Gecko not pruning alt="" images from accessibility tree
- Date: Tue, 6 Jun 2017 22:46:02 +0000 (UTC)
commit 1581456acc924635703d55d1cac4b6fe3150f46b
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Jun 6 18:44:55 2017 -0400
Work around Gecko not pruning alt="" images from accessibility tree
src/orca/scripts/web/script_utilities.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index e84d7fb..70d5b50 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -2545,7 +2545,7 @@ class Utilities(script_utilities.Utilities):
image = obj.queryImage()
if image.imageDescription:
rv = False
- else:
+ elif not self.hasExplicitName(obj):
width, height = image.getImageSize()
if width > 25 and height > 25:
rv = False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]