Closed Bug 243345 Opened 21 years ago Closed 21 years ago

[FIX]bugzilla request dropdowns show strange character

Categories

(Core :: Layout: Form Controls, defect, P2)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.8alpha1

People

(Reporter: Biesinger, Assigned: bzbarsky)

Details

(Keywords: regression)

Attachments

(3 files, 1 obsolete file)

nightly 2004051006, gtk1 (no xft), linux/x86 The request dropdowns on bugzilla, when no flag is selected, show a strange character. looks like a rectangle, with a dotted outline. will attach a screenshot.
Regressed between 2004-05-07-08 and 2004-05-08-08. Checkins: http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2004-05-07+08%3A00%3A00&maxdate=2004-05-08+08%3A00%3A00&cvsroot=%2Fcvsroot Possible culprits: Bug 237760, caillon's checkin for style stuff, bug 242734. Note that this is not a "strange character" -- it's just the focus rect being mis-sized.
(In reply to comment #2) > Regressed between 2004-05-07-08 and 2004-05-08-08. Checkins: whoa bz, you are too fast for me... I was still downloading a build to hunt for the regression date > Note that this is not a "strange character" -- it's just the focus rect being > mis-sized. oh. heh. cool. :) going to mark major, as this is quite visible...
Severity: normal → major
Attached patch Patch (obsolete) — Splinter Review
I was wrong. It's a strange character... ;)
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attached patch Patch for realSplinter Review
Attachment #148240 - Attachment is obsolete: true
Comment on attachment 148241 [details] [diff] [review] Patch for real jst, this is all your fault, man! The null terminator is _not_ part of the string!
Attachment #148241 - Flags: superreview?(jst)
Attachment #148241 - Flags: review?(jst)
Priority: -- → P2
Summary: bugzilla request dropdowns show strange character → [FIX]bugzilla request dropdowns show strange character
Target Milestone: --- → mozilla1.8alpha
(i.e. this was caused by bug 242734)
The implementation of SetText (in nsGenericDOMDataNode.cpp) assumes its argument is null-terminated.
Hmm.. so it does, when it does the nsDependentString thing. We should probably fix that, since the call signature makes it look that no such assumptions, and neither does the API (or document the assumption and change this patch accordingly).
Sorry for not replying here before, I had some major email problems all day yesterday and missed this discussion. How about this, in addition to bz's patch?
Comment on attachment 148241 [details] [diff] [review] Patch for real Duh :-) r+sr=jst
Attachment #148241 - Flags: superreview?(jst)
Attachment #148241 - Flags: superreview+
Attachment #148241 - Flags: review?(jst)
Attachment #148241 - Flags: review+
Attachment #148346 - Flags: superreview?(bzbarsky)
Attachment #148346 - Flags: review?(bzbarsky)
Comment on attachment 148346 [details] [diff] [review] Don't assume aBuffer is null-terminated. What about the char* version of SetText? It has the same issue, no?
Yeah, duh, fixed locally. Checking in (r+sr=bz over IRC).
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Attachment #148346 - Flags: superreview?(bzbarsky)
Attachment #148346 - Flags: superreview+
Attachment #148346 - Flags: review?(bzbarsky)
Attachment #148346 - Flags: review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: