Closed
Bug 895000
Opened 11 years ago
Closed 11 years ago
New unlabelled buttons can be accessibility focused on awesomebar
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(firefox24 unaffected, firefox25+ verified, fennec25+)
VERIFIED
FIXED
Firefox 25
Tracking | Status | |
---|---|---|
firefox24 | --- | unaffected |
firefox25 | + | verified |
fennec | 25+ | --- |
People
(Reporter: maxli, Assigned: maxli)
References
Details
(Keywords: access, regression)
Attachments
(1 file, 2 obsolete files)
7.01 KB,
patch
|
wesj
:
review+
|
Details | Diff | Splinter Review |
As of the July 17 Nightly build, there's (at least) a couple of unlabelled buttons that can be focused using Talkback. One of these appears to be the Reader mode button (which was previously properly labelled); I don't know what the other one is. These buttons can be focused even when they aren't visible. Seems to have been regressed by bug 734877.
Updated•11 years ago
|
Updated•11 years ago
|
status-firefox24:
--- → unaffected
status-firefox25:
--- → affected
Updated•11 years ago
|
Assignee: nobody → sbhagat
Assignee | ||
Comment 1•11 years ago
|
||
Bug 895056 fixed that you could focus invisible elements. All that is needed here is setting the content description. So I'm stealing this bug.
Assignee: sbhagat → maxli
Attachment #777773 -
Flags: review?(wjohnston)
Comment 2•11 years ago
|
||
Comment on attachment 777773 [details] [diff] [review] bug895000.patch drive-by >diff --git a/mobile/android/base/PageActionLayout.java b/mobile/android/base/PageActionLayout.java > public void run () { > v.setImageDrawable((mPageActionList.size() > mMaxVisiblePageActions) ? resources.getDrawable(R.drawable.icon_pageaction) : d); Could you move this line of code into your new "if/else" block?
Assignee | ||
Comment 3•11 years ago
|
||
> Could you move this line of code into your new "if/else" block?
Sure.
Attachment #777773 -
Attachment is obsolete: true
Attachment #777773 -
Flags: review?(wjohnston)
Attachment #777782 -
Flags: review?(wjohnston)
Comment 4•11 years ago
|
||
Comment on attachment 777782 [details] [diff] [review] Patch Review of attachment 777782 [details] [diff] [review]: ----------------------------------------------------------------- This looks like the right fix, but I want to consolidate all of this code into one place so we don't have to update three all the time. ::: mobile/android/base/PageActionLayout.java @@ +185,5 @@ > + v.setContentDescription(resources.getString(R.string.page_actions)); > + } else { > + v.setImageDrawable((pageAction != null) ? pageAction.getDrawable() : null); > + v.setContentDescription((pageAction != null) ? pageAction.getTitle() : null); > + } Would you mind consolidating this stuff a bit into a helper function. i.e. something like: private void setActionForView(View view, Pageaction pageaction) { if (pageaction == null) { // hide the view, remove its description, icon, and tag return; } // show the view, // add a description // and an icon // set the pageAction.id as a tag on the view } I'd even be fine if we had a special page action for the overflow button if you wanted too (maybe not stored in our normal list. So this became if (size > max) { pageaction = overflowAction; } setActionForView(v, pageaction); but we can do that in a separate bug if you're uncomfortable with it here. ::: mobile/android/base/locales/en-US/android_strings.dtd @@ +252,5 @@ > <!ENTITY reading_list_duplicate "Page already in your Reading List"> > + > +<!-- Localization note : These strings are used as alternate text for accessibility. > + They are not visible in the UI. --> > +<!ENTITY page_actions "Additional Actions"> lets make this entity more descriptive. page_action_dropmarker_description?
Attachment #777782 -
Flags: review?(wjohnston) → feedback+
Updated•11 years ago
|
tracking-fennec: ? → 25+
Assignee | ||
Comment 5•11 years ago
|
||
> I'd even be fine if we had a special page action for the overflow button
I'll leave this to a separate bug.
Attachment #777782 -
Attachment is obsolete: true
Attachment #777979 -
Flags: review?(wjohnston)
Updated•11 years ago
|
Attachment #777979 -
Flags: review?(wjohnston) → review+
Assignee | ||
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7b3d37195619
Comment 7•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7b3d37195619
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 25
Comment 8•11 years ago
|
||
Verified fixed in Fennec 25.0a1 (2013-07-20)
Status: RESOLVED → VERIFIED
Keywords: verifyme
Assignee | ||
Updated•11 years ago
|
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•