Open Bug 894451 Opened 11 years ago Updated 2 years ago

Firefox should ignore blank longdescs rather than replace them with the URL of the page

Categories

(Firefox :: Disability Access, defect)

defect

Tracking

()

REOPENED

People

(Reporter: jboriss, Unassigned)

Details

(Keywords: access)

Bug 877453 exposed longdesc in image context menus, but it is not yet exposed in images which are also links which contain longdesc.

Steps to reproduce:

1. Go to https://blog.mozilla.org/faaborg/2007/06/01/the-user-interface-of-firefox-3-features/
2. Right-click on any of the images in the blog post

Result: See context menu for a standard linked image

Expected result: Also see link to Description in image, since the images all have a long description

Max, I assigned you to this bug because you wrote the patch on Bug 877453, but please feel free to unassign or reassign.
Unless I'm missing something, the longdesc attributes on those images are blank, which isn't a valid longdesc value [1], so I wouldn't expect them to show the context menu item. If you try for example [2], it works as expected.

[1] http://www.w3.org/TR/2013/WD-html-longdesc-20130606/#user-agents
[2] http://www.d.umn.edu/~lcarlson/research/ld-tests/tests/index.html#ld4

Feel free to reopen if I'm mistaken.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
(In reply to Max Li [:maxli] from comment #1)
> Unless I'm missing something, the longdesc attributes on those images are
> blank, which isn't a valid longdesc value [1], so I wouldn't expect them to
> show the context menu item. If you try for example [2], it works as expected.
> 
> [1] http://www.w3.org/TR/2013/WD-html-longdesc-20130606/#user-agents
> [2] http://www.d.umn.edu/~lcarlson/research/ld-tests/tests/index.html#ld4
> 
> Feel free to reopen if I'm mistaken.

At first I was confused about why the link images in https://blog.mozilla.org/faaborg/2007/06/01/the-user-interface-of-firefox-3-features/ show longdesc in the Page Info window but not the context menu, while the image links in your [2] link above show longdesc in both the Page Info window and the context menu.  Then I looked at the source on Faaborg's blog:

> longdesc="" />

...he appears to have left the longdesc attribute blank but present, which produces in Page Info a URL for longdesc which is just the URL of the page that the image is in.

This is pretty minor, but we should just ignore longdescs that are empty rather than show a URL for them in Page Info.  I guess I'll change the title of this bug and reopen it
Summary: Expose longdesc in image link context menus → Firefox should ignore blank longdescs rather than replace them with the URL of the page
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---

The bug assignee didn't login in Bugzilla in the last 7 months.
:Jamie, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: maxli → nobody
Flags: needinfo?(jteh)
Severity: normal → S4
Flags: needinfo?(jteh)

I think this is a bug in page info, not a11y APIs, so moving.

Component: Disability Access APIs → Disability Access
Product: Core → Firefox
You need to log in before you can comment on or make changes to this bug.