Commit b3e29a2693d493be8f1b666f5ba0d3f83d312327

Authored by Joanmarie Diggs
1 parent 822efe20

Only prefer the name of links when it's author-provided

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
src/orca/scripts/web/speech_generator.py
... ... @@ -179,6 +179,10 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
179 179 if role in [pyatspi.ROLE_COMBO_BOX, pyatspi.ROLE_SPIN_BUTTON]:
180 180 return super()._generateName(obj, **args)
181 181  
  182 + if self._script.utilities.isLink(obj) \
  183 + and not self._script.utilities.hasExplicitName(obj):
  184 + return []
  185 +
182 186 if self._script.utilities.inDocumentContent(obj) and obj.name:
183 187 result = [obj.name]
184 188 result.extend(self.voice(speech_generator.DEFAULT))
... ...