Closed Bug 421196 Opened 17 years ago Closed 17 years ago

PopupAutoCompleteRichResult and toolkit style rules use wrong type attribute for rich autocomplete panel

Categories

(Toolkit :: UI Widgets, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9beta5

People

(Reporter: Gavin, Assigned: Gavin)

Details

Attachments

(1 file, 1 obsolete file)

browser.xul has: <panel type="autocomplete-richlistbox" chromedir="&locale.dir;" id="PopupAutoCompleteRichResult" noautofocus="true" hidden="true"/> but "autocomplete-richlistbox" isn't a valid type for the panel. The real type is "rich-autocomplete", per xul.css. ("autocomplete-richlistbox" appears to be the classname used for the popup's anonymous richlistbox and associated binding.) Turns out this doesn't matter too much, because we override it with an ID selector in browser.css [1], but we should fix it nonetheless to avoid this pattern spreading as people copy/paste our code. [1] http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/browser/base/content/browser.css&rev=1.59&mark=23#22 Some of the toolkit autocomplete rules have selectors that match on that attribute value, as well. We should fix them, otherwise non-Firefox users of that kind of panel will be styled incorrectly.
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → gavin.sharp
Status: NEW → ASSIGNED
Attachment #307601 - Flags: review?(enndeakin)
Comment on attachment 307601 [details] [diff] [review] patch xul.css should instead be changed to "autocomplete-richlistbox", as per https://bugzilla.mozilla.org/show_bug.cgi?id=399664#c22
Attachment #307601 - Flags: review?(enndeakin) → review-
Attached patch patchSplinter Review
Attachment #307601 - Attachment is obsolete: true
Attachment #308239 - Flags: review?(enndeakin)
Component: General → XUL Widgets
Priority: -- → P1
Product: Firefox → Toolkit
QA Contact: general → xul.widgets
Target Milestone: --- → mozilla1.9beta5
Attachment #308239 - Flags: review?(enndeakin) → review+
Attachment #308239 - Flags: approval1.9?
Comment on attachment 308239 [details] [diff] [review] patch a1.9+=damons
Attachment #308239 - Flags: approval1.9? → approval1.9+
mozilla/toolkit/content/xul.css 1.119
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: