Closed
Bug 387097
Opened 17 years ago
Closed 17 years ago
Color picker in options window doesn't work after being selected once
Categories
(Firefox :: Settings UI, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: RyanVM, Assigned: enndeakin)
References
Details
(Keywords: regression)
Attachments
(1 file)
10.44 KB,
patch
|
asaf
:
review+
|
Details | Diff | Splinter Review |
From bug 279703 comment #95: In Tools/Options/Contents/Colors, click on a colorpicker to open the colors panel (with updated Walnut theme this looks nice!), and the click again on the same colorpicker button to close it again. So far so good. Click again, and you would expect to pop it again, but no ... For other popups this works, so may be the colorpicker needs some specific attention? I can confirm this with XPSP2.
Flags: blocking-firefox3?
Comment 1•17 years ago
|
||
i get a slightly different behaviour... clicking on the colorpicker button mantains it open, while it should close 1. click on color picker button 2. click again on it the color picker should close instead it reopens on itself clicking away closes it and it can be reopened without any problem
Assignee | ||
Comment 2•17 years ago
|
||
The colorpicker uses some odd and hacky custom handling of the popup. Let's just use the builtin menu behaviour.
Comment 3•17 years ago
|
||
Comment on attachment 271246 [details] [diff] [review] Remove custom popup handling Having to put a <panel> inside a xul:menu element (meaningfully forces creating a binding for simple panels) seems sub-optimal to me :-/ >Index: toolkit/content/widgets/colorpicker.xml >=================================================================== >- <property name="open" onget="return this.mOpen"/> >+ <property name="open" onget="return this.getAttribute('open') == 'true'"/> while you're at it, either define a setter or mark this readonly. > <handlers> > <handler event="keydown"><![CDATA[ > // open popup if key is space/up/left/right/down and popup is closed >- if ( (event.keyCode == 32 || (event.keyCode > 36 && event.keyCode < 41)) && !this.mOpen) >- >+ if ( (event.keyCode == 32 || (event.keyCode > 36 && event.keyCode < 41)) && !open) > this.showPopup(); >+ else if ( (event.keyCode == 27) && open) for readability, please make this this.open/!this.open. r=mano otherwise.
Attachment #271246 -
Flags: review?(mano) → review+
Assignee | ||
Updated•17 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: blocking-firefox3? → blocking-firefox3+
Comment 4•17 years ago
|
||
verified using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b3pre) Gecko/2007122705 Minefield/3.0b3pre and Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b3pre) Gecko/2007122704 Minefield/3.0b3pre with the steps to reproduce from this bug - Verified fixed
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•