Closed Bug 425564 Opened 16 years ago Closed 16 years ago

colorpicker's "disabled" property has no effect

Categories

(Toolkit :: UI Widgets, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: myk, Assigned: neil)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

I'm not sure if this is a widget bug or a docs bug, but the XUL reference says the "disabled" property of the colorpicker widget gets and sets the value of the "disabled" attribute <http://developer.mozilla.org/en/docs/XUL:colorpicker#p-disabled>, yet that doesn't work.

Getting and setting the attribute directly does work, however.  So either the property needs to be fixed, if there is such a property, or the docs need to be updated to remove the reference to it (and tell authors to get and set the attribute itself).
Looks like the button type of colorpicker just needs to extend 'chrome://global/content/bindings/general.xml#basecontrol' as the non-button type does.

In general, the colorpicker itself is in dire need of much love.
Blocks: 79603
Attached patch Proposed patchSplinter Review
As it happens I'd already discovered the bug reviewing the patch to bug 79603.
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #313419 - Flags: review?(enndeakin)
Attachment #313419 - Flags: review?(enndeakin) → review+
Attached patch With tests!Splinter Review
Attachment #313469 - Flags: review?(enndeakin)
Version: unspecified → Trunk
Would skins/themes need colorpicker[disabled="true"], colorpicker[disabled="true"]:hover:active style rules once this bug is fixed?
> Would skins/themes need colorpicker[disabled="true"],
> colorpicker[disabled="true"]:hover:active style rules once this bug is fixed?

Yes, having several colorpickers on one page where some work and some don't, but all look alike, is not very helpful...

Attachment #313469 - Flags: review?(enndeakin) → review+
Comment on attachment 313469 [details] [diff] [review]
With tests!

This patch exists solely to fix the accessibility and functionality issues raised in the bug. CSS updates would probably need to be addressed on a per-theme bases in separate bugs.
Attachment #313469 - Flags: approval1.9?
Blocks: 427619
Comment on attachment 313469 [details] [diff] [review]
With tests!

a=beltzner, hooray tests!
Attachment #313469 - Flags: approval1.9? → approval1.9+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: