Skip to content

Commit fbca680

Browse files
authored
Merge 1b109cf into e82d24c
2 parents e82d24c + 1b109cf commit fbca680

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

source/globalCommands.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3670,6 +3670,16 @@ def script_reportLinkDestination(
36703670
ti.expand(textInfos.UNIT_CHARACTER)
36713671
obj: NVDAObject = ti.NVDAObjectAtStart
36723672
presses = scriptHandler.getLastScriptRepeatCount()
3673+
if (
3674+
obj.role == controlTypes.role.Role.GRAPHIC
3675+
and (
3676+
obj.parent
3677+
and obj.parent.role == controlTypes.role.Role.LINK
3678+
)
3679+
):
3680+
# In Firefox, graphics with a parent link also expose the parents link href value.
3681+
# In Chromium, the link href value must be fetched from the parent object. (#14779)
3682+
obj = obj.parent
36733683
if (
36743684
obj.role == controlTypes.role.Role.LINK # If it's a link, or
36753685
or controlTypes.state.State.LINKED in obj.states # if it isn't a link but contains one

0 commit comments

Comments
 (0)