Closed Bug 258300 Opened 21 years ago Closed 21 years ago

Many character encoding is unselectable in setting of Default Character Encoding.

Categories

(Core :: XUL, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla1.8alpha4

People

(Reporter: hub-san, Assigned: dbaron)

References

Details

(Keywords: regression)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a3) Gecko/20040904 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a3) Gecko/20040904 I cannot select character encoding of language setting which I want because scroll bar is gone. This problem happens at both "Languages" of "Navigator" category and "Message Display" of "Mail & Newsgroups" category. Reproducible: Always Steps to Reproduce: 1. Goto Mozilla->Preferences...->Navigator->Languages. 2. Select Character Encoding: -> Default Character Encoding. (in Navigator category) Actual Results: Many character encoding is unselectable because scroll bar is gone. I cannot select character encoding of language setting which I want. Expected Results: All character encoding is selectable by using scroll bar. I can select character encoding of language setting which I want. On MacOSX10.2.8, I confirmed this problem on Mozilla 2004-09-05-08-trunk build(Classic theme). But, Mozilla 2004-09-04-08-trunk didn't have this problem. Then, I confirmed this problem on Mozillla 2004-09-05-03-trunk build(Linux gtk2+xft). But, Mozilla 2004-09-04-03-trunk(gtk2+xft) didn't have this problem. It seemed that this bug occurred between 20040903 and 20040904. I searched CVS checkins of last three days. Is this problem caused by bug 72747? Or bug 252326 or bug 257920 or bug 250342?
Keywords: regression
Chances are, this is bug 72747
Flags: blocking1.8a4?
It may have something to do with the parsing of the style attribute on the xul:hbox inside the menupopup inside the menulist. (Although there is a chance that I could be seeing two separate bugs -- one in style data computation and one in serialization.)
A pull-by-date build at 2004-09-04 17:00 -0700 doesn't show the bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch patchSplinter Review
Bizarrely enough, this seems to fix the bug. I don't know: (1) why parsing style attributes in XBL involves serialization (2) why there wasn't a CSS error when the serialization was reparsed
Assignee: jag → dbaron
Status: NEW → ASSIGNED
Attachment #158160 - Flags: superreview?(bzbarsky)
Attachment #158160 - Flags: review?(bzbarsky)
> (1) why parsing style attributes in XBL involves serialization Binding instantiation is done by doing a deep CloneNode() on the binding's content. Both nsXULElement::CloneNode and nsGenericElement::CopyInnerTo effectively do a GetAttr() followed by SetAttr() for each attribute. Doing that to the "style" attribute serializes and then reparses. > (2) why there wasn't a CSS error when the serialization was reparsed I'm not sure about this one... worth checking out, possibly.
Comment on attachment 158160 [details] [diff] [review] patch r+sr=bzbarsky
Attachment #158160 - Flags: superreview?(bzbarsky)
Attachment #158160 - Flags: superreview+
Attachment #158160 - Flags: review?(bzbarsky)
Attachment #158160 - Flags: review+
Fix checked in to trunk, 2004-09-07 22:42 -0700.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Flags: blocking1.8a4?
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.8alpha4
(In reply to comment #6) > Binding instantiation is done by doing a deep CloneNode() on the binding's > content. Both nsXULElement::CloneNode and nsGenericElement::CopyInnerTo > effectively do a GetAttr() followed by SetAttr() for each attribute. Doing > that to the "style" attribute serializes and then reparses. Wow. There must be a more efficient way to do it.
> Wow. There must be a more efficient way to do it. Probably, yes. Even attributes other than style could be more efficient (eg no need to convert from enums to strings and back). File a bug on this, perhaps?
*** Bug 258425 has been marked as a duplicate of this bug. ***
We could move that style to xul.css or popup.css if you like.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: