[orca] Don't infer labels for any web app descendant
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't infer labels for any web app descendant
- Date: Fri, 3 Apr 2020 15:34:56 +0000 (UTC)
commit 255c3c20298c46ea74c0b6f8e6f98d37ea969fc4
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Apr 3 11:29:42 2020 -0400
Don't infer labels for any web app descendant
We were already doing this for top-level web app descendants, but doing
extra work when the web app is embedded inside a document. For most web
apps, label inference fails anyway because there is no surrounding static
text so it's just wasted effort.
src/orca/scripts/web/script_utilities.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index a0b85076a..0d51a290f 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -3907,7 +3907,7 @@ class Utilities(script_utilities.Utilities):
return rv
def shouldInferLabelFor(self, obj):
- if not self.inDocumentContent() or self.inTopLevelWebApp():
+ if not self.inDocumentContent() or self.isWebAppDescendant(obj):
return False
rv = self._shouldInferLabelFor.get(hash(obj))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]