Closed Bug 1052026 Opened 6 years ago Closed 6 years ago

Missing contentDescription on menu item between Bookmark and Share


(Firefox for Android :: General, defect)

Not set



Firefox 34


(Reporter: MarcoZ, Assigned: ramasamy.zephyr, Mentored)


(Keywords: access, Whiteboard: [lang=java])


(1 file, 1 obsolete file)

There seems to be a new menu item which is missing a contentDescription, right between the Bookmark and Share items on the menu when opened on a Nexus 5.

1. Launch Fennec Nightly on a Nexus 5 running KitKat.
2. Load a page.
3. Open the menu.
4. Between the Bookmark and Share items, there is another item which TalkBack only announces as "Graphic" plus some number.

Trivial fix: Add a localized contentDescription describing what this thing is.
This is probably one or two quick share items that will appear after you initially share
(In reply to Aaron Train [:aaronmt] from comment #1)
> This is probably one or two quick share items that will appear after you
> initially share

Interesting! Then the contentDescription should be the name of the share target that's being offered. :)
Mentor: wjohnston
Whiteboard: [lang=java]
We add those here:

but we only pass an icon there! We should probably modify that method to take a string as well:

i.e. you should never be creating an action view that has no text for the contentDescription.
I tested in Nexus 5 and seems to work fine.
Attachment #8474271 - Flags: review?(wjohnston)
Comment on attachment 8474271 [details] [diff] [review]

Review of attachment 8474271 [details] [diff] [review]:

Nice :) And thanks. One little nit. Can you upload a fixed patch and mark checkin-needed :)

::: mobile/android/base/widget/
@@ +104,5 @@
>              return view;
>          }
>          for (int i = 0; i < historySize; i++) {
> +            view.addActionButton(dataModel.getActivity(i).loadIcon(packageManager),dataModel.getActivity(i).loadLabel(packageManager));

space after the comma. I'd probably put the second argument on a new line and line it up with the argument above too. It makes it easier to parse the two arguments.
Attachment #8474271 - Flags: review?(wjohnston) → review+
Thanks for reviewing.
Attachment #8474766 - Flags: checkin?(wjohnston)
Comment on attachment 8474766 [details] [diff] [review]

Can we get a Try run first please? :)

Also, you can just set the checkin-needed bug keyword when your patch is ready to land.
Attachment #8474766 - Flags: checkin?(wjohnston)
Assignee: nobody → ramasamy.zephyr
Attachment #8474271 - Attachment is obsolete: true
I don't have level-1 access to do a try run.
Try builds green, ran the Android performance tests. Java only change so building other platforms is a waste of CPU.
Keywords: checkin-needed
Keywords: checkin-needed
Whiteboard: [lang=java] → [lang=java][fixed-in-fx-team]
Closed: 6 years ago
Resolution: --- → FIXED
Whiteboard: [lang=java][fixed-in-fx-team] → [lang=java]
Target Milestone: --- → Firefox 34
You need to log in before you can comment on or make changes to this bug.