Closed Bug 392890 Opened 17 years ago Closed 17 years ago

Provide a text label for the Search edit in Download Manager

Categories

(Toolkit :: Downloads API, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9beta4

People

(Reporter: MarcoZ, Assigned: dao)

References

Details

(Keywords: access)

Attachments

(1 file, 4 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 Build Identifier: trunk In the new Download Manager, the Search... textbox does not have an associated label. Reproducible: Always Steps to Reproduce: 1. Start Minefield. 2. Select Tools/Download Manager. 3. Tab to the Search... textbox. Actual Results: No label is spoken for this textbox. Expected Results: Search: or some equivalent label should be spoken.
This is a Firefox-specific dialog, so moving out from Core to Firefox.
URL: h
Status: UNCONFIRMED → NEW
Component: Disability Access APIs → Disability Access
Ever confirmed: true
Keywords: access, sec508
Product: Core → Firefox
Flags: blocking-firefox3?
Please see the search box to see how we created an accessible label for that.
I should say, please see the web search box in the main browser window.
Assignee: aaronleventhal → nobody
Component: Disability Access → Download Manager
QA Contact: accessibility-apis → download.manager
Hardware: PC → All
Version: unspecified → Trunk
Depends on: 388811
Flags: blocking-firefox3? → blocking-firefox3+
Target Milestone: --- → Firefox 3 M9
Target Milestone: Firefox 3 M9 → Firefox 3 M10
Bug 399783 will remove the search box, so this bug would become invalid.
Depends on: 399783
Target Milestone: Firefox 3 M10 → Firefox 3 M11
P3 if we're keeping this.
Priority: -- → P3
Attached patch v1 (obsolete) (deleted) — Splinter Review
(In reply to comment #2) > Please see the search box to see how we created an accessible label for that. The search engine box has a special label getter to support different search engines.. Is adding a label all that's needed for the download manager search?
Assignee: nobody → edilee
Status: NEW → ASSIGNED
Attachment #292370 - Flags: review?(aaronleventhal)
Comment on attachment 292370 [details] [diff] [review] v1 This works but we're better off with a general solution in mozilla/accessible/src/xul/nsXULTextfieldAccessible.cpp for the case where there is a grayed label inside the textbox. We should override GetName to use the new emptyText when there is no label.
Attachment #292370 - Flags: review?(aaronleventhal) → review-
Depends on: 406095
Actually I think this should be fixed in bug 406095. They should probably just expose the emptyText as the label when there is no other label.
Actually, didn't realize bug 388811 was blocking this. Seems like Mossop will be able to get a unified search box implementation which should have all the label, grayText, emptyText stuff.
Whiteboard: [needs bug 388811][needs new patch]
Assignee: edilee → dao
Status: ASSIGNED → NEW
Status update?
Whiteboard: [needs bug 388811][needs new patch] → [needs bug 406095][needs new patch]
No longer depends on: 388811
Blocks: 414857
Blocks: 407330
Attached patch v2 (obsolete) (deleted) — Splinter Review
Use the new emptyText property instead of doing it ourself. I'll r? sdwilsh after the Dão looks at it.. he might want to get rid of that TODO comment and flex and resizer..
Assignee: dao → edilee
Attachment #292370 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #301704 - Flags: review?(dao)
Comment on attachment 301704 [details] [diff] [review] v2 >- if (!gSearchBox.hasAttribute("empty")) >+ if (gSearchBox.value != "") Oh, I suppose technically I didn't have to change that.
Whiteboard: [needs bug 406095][needs new patch] → [needs new patch]
Comment on attachment 301704 [details] [diff] [review] v2 Hey, I assigned this bug to myself for a reason :) This patch doesn't work (emptyText property vs. emptytext attribute), and I there's more cleanup to do.
Attachment #301704 - Flags: review?(dao) → review-
Attached patch patch (obsolete) (deleted) — Splinter Review
Assignee: edilee → dao
Attachment #301704 - Attachment is obsolete: true
Attachment #301746 - Flags: review?(sdwilsh)
Comment on attachment 301746 [details] [diff] [review] patch >diff -u -8 -p -r1.24 downloads.css >--- toolkit/themes/pinstripe/mozapps/downloads/downloads.css 29 Jan 2008 05:16:35 -0000 1.24 >+++ toolkit/themes/pinstripe/mozapps/downloads/downloads.css 6 Feb 2008 21:54:18 -0000 >@@ -94,12 +94,8 @@ richlistitem[type="download"] button { > -moz-border-right-colors: #969696 #C5C5C5 -moz-Field; > -moz-border-left-colors: #969696 #C5C5C5 -moz-Field; > -moz-border-radius: 11.5px; > background: url("chrome://global/skin/icons/search-textbox.png") -moz-Field no-repeat 1px center; > -moz-background-clip: padding !important; > padding: 0 8px; > -moz-padding-start: 16px; > } >- >-#searchbox[empty] { >- color: -moz-Field; >-} Btw, I don't really understand this. Seems like this would make the emptyText invisible on Mac (same background and foreground color).
Target Milestone: Firefox 3 beta3 → Firefox 3 beta4
Whiteboard: [needs new patch]
Attached patch patch (obsolete) (deleted) — Splinter Review
I just realized that the regular expression for trimming the search terms isn't quite correct. Let's fix it while we're touching it.
Attachment #301746 - Attachment is obsolete: true
Attachment #301748 - Flags: review?(sdwilsh)
Attachment #301746 - Flags: review?(sdwilsh)
(In reply to comment #15) > Btw, I don't really understand this. Seems like this would make the emptyText > invisible on Mac (same background and foreground color). Yeah, my current nightly doesn't have any text. I'd been wondering about that for a little while, but no time to investigate it.
madhava: Should the download manager search box show the text "Search..." if the user hasn't entered anything? The new theme hides the text by making it the same as the background color, but in its place is a search icon. So technically it doesn't regress bug 391861.
madhava: Oops, forgot to specify that it's OS X only. (I suppose additionally, OS X download manager has the search box on the right side.. should the other platforms conform? [if so, I'll file a separate bug])
Comment on attachment 301748 [details] [diff] [review] patch r=Mardak > <hbox id="search"> > <textbox type="timed" timeout="500" id="searchbox" >- oncommand="buildDownloadList();" empty="true" >- value="&searchBox.label;" defaultValue="&searchBox.label;" >- onblur="onSearchboxBlur();" onfocus="onSearchboxFocus();"/> >+ oncommand="buildDownloadList();" emptytext="&searchBox.label;"/> > <spacer flex="1"/> >- <!-- TODO get advanced search working (Bug 390491) >- <button label="Advanced Search"/> >- --> > <resizer id="windowResizer" dir="bottomright"/> > </hbox> Could you also kill that spacer and resizer? >+++ toolkit/themes/pinstripe/mozapps/downloads/downloads.css 6 Feb 2008 21:54:18 -0000 And remove the "#search > spacer" from this file.
Attachment #301748 - Flags: review?(sdwilsh) → review+
Oh, forgot to mention.. <madhava> I think it should have the text
Attached patch ... and remove the resizer (deleted) — Splinter Review
Attachment #301748 - Attachment is obsolete: true
Keywords: checkin-needed
Whiteboard: [has patch][has review][can land]
Checking in toolkit/mozapps/downloads/content/downloads.js; /cvsroot/mozilla/toolkit/mozapps/downloads/content/downloads.js,v <-- downloads.js new revision: 1.136; previous revision: 1.135 done Checking in toolkit/mozapps/downloads/content/downloads.xul; /cvsroot/mozilla/toolkit/mozapps/downloads/content/downloads.xul,v <-- downloads.xul new revision: 1.48; previous revision: 1.47 done Checking in toolkit/themes/gnomestripe/mozapps/downloads/downloads.css; /cvsroot/mozilla/toolkit/themes/gnomestripe/mozapps/downloads/downloads.css,v <-- downloads.css new revision: 1.6; previous revision: 1.5 done Checking in toolkit/themes/pinstripe/mozapps/downloads/downloads.css; /cvsroot/mozilla/toolkit/themes/pinstripe/mozapps/downloads/downloads.css,v <-- downloads.css new revision: 1.25; previous revision: 1.24 done Checking in toolkit/themes/winstripe/mozapps/downloads/downloads.css; /cvsroot/mozilla/toolkit/themes/winstripe/mozapps/downloads/downloads.css,v <-- downloads.css new revision: 1.28; previous revision: 1.27 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: [has patch][has review][can land]
No longer blocks: 414857
Verified fixed using Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9b4pre) Gecko/2008022005 Minefield/3.0b4pre. Thanks Stephen for the pointer!
Status: RESOLVED → VERIFIED
(In reply to comment #24) > Verified fixed using Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; > rv:1.9b4pre) Gecko/2008022005 Minefield/3.0b4pre. Thanks Stephen for the > pointer! Marco - would you mind writing a Litmus testcase for this? I can write one, but am unsure I'd get the fine-grained details right for the various screen-readers. Thanks, either way!
I created https://litmus.mozilla.org/show_test.cgi?id=5305 for Litmus, but I did not enable it - Marco if you can tweak any verbiage necessary and then enable the test case that would be great.
Thanks Marcia! It's now live with a minor edit to the expected text that the user should hear.
Flags: in-litmus? → in-litmus+
But the testcase doesn't say anything about accessibility; end-users running this test will mark it as failed since they don't know it's accessibility-specific, which will create noise and mark it hard to tell if/when it really fails, right?
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: