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)
Toolkit
Downloads API
Tracking
()
VERIFIED
FIXED
mozilla1.9beta4
People
(Reporter: MarcoZ, Assigned: dao)
References
Details
(Keywords: access)
Attachments
(1 file, 4 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review |
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.
Comment 1•17 years ago
|
||
This is a Firefox-specific dialog, so moving out from Core to Firefox.
Updated•17 years ago
|
Flags: blocking-firefox3?
Comment 2•17 years ago
|
||
Please see the search box to see how we created an accessible label for that.
Comment 3•17 years ago
|
||
I should say, please see the web search box in the main browser window.
Updated•17 years ago
|
Assignee: aaronleventhal → nobody
Component: Disability Access → Download Manager
QA Contact: accessibility-apis → download.manager
Updated•17 years ago
|
Hardware: PC → All
Version: unspecified → Trunk
Updated•17 years ago
|
Flags: in-litmus?
Updated•17 years ago
|
Depends on: 388811
Flags: blocking-firefox3? → blocking-firefox3+
Target Milestone: --- → Firefox 3 M9
Updated•17 years ago
|
Target Milestone: Firefox 3 M9 → Firefox 3 M10
Comment 4•17 years ago
|
||
Bug 399783 will remove the search box, so this bug would become invalid.
Depends on: 399783
Updated•17 years ago
|
Target Milestone: Firefox 3 M10 → Firefox 3 M11
Comment 6•17 years ago
|
||
(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?
Comment 7•17 years ago
|
||
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-
Comment 8•17 years ago
|
||
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.
Comment 9•17 years ago
|
||
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.
Updated•17 years ago
|
Whiteboard: [needs bug 388811][needs new patch]
Assignee | ||
Updated•17 years ago
|
Assignee: edilee → dao
Status: ASSIGNED → NEW
Comment 10•17 years ago
|
||
Status update?
Assignee | ||
Updated•17 years ago
|
Whiteboard: [needs bug 388811][needs new patch] → [needs bug 406095][needs new patch]
Comment 11•17 years ago
|
||
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 12•17 years ago
|
||
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.
Updated•17 years ago
|
Whiteboard: [needs bug 406095][needs new patch] → [needs new patch]
Assignee | ||
Comment 13•17 years ago
|
||
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-
Assignee | ||
Comment 14•17 years ago
|
||
Assignee: edilee → dao
Attachment #301704 -
Attachment is obsolete: true
Attachment #301746 -
Flags: review?(sdwilsh)
Assignee | ||
Comment 15•17 years ago
|
||
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).
Assignee | ||
Updated•17 years ago
|
Target Milestone: Firefox 3 beta3 → Firefox 3 beta4
Assignee | ||
Updated•17 years ago
|
Whiteboard: [needs new patch]
Assignee | ||
Comment 16•17 years ago
|
||
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)
Comment 17•17 years ago
|
||
(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.
Comment 18•17 years ago
|
||
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.
Comment 19•17 years ago
|
||
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 20•17 years ago
|
||
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+
Comment 21•17 years ago
|
||
Oh, forgot to mention..
<madhava> I think it should have the text
Assignee | ||
Comment 22•17 years ago
|
||
Attachment #301748 -
Attachment is obsolete: true
Assignee | ||
Updated•17 years ago
|
Keywords: checkin-needed
Updated•17 years ago
|
Whiteboard: [has patch][has review][can land]
Comment 23•17 years ago
|
||
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]
Reporter | ||
Comment 24•17 years ago
|
||
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!
Comment 26•17 years ago
|
||
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.
Reporter | ||
Comment 27•17 years ago
|
||
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?
Updated•16 years ago
|
Product: Firefox → Toolkit
Comment 29•6 years ago
|
||
Keywords: sec508
You need to log in
before you can comment on or make changes to this bug.
Description
•