Closed
Bug 229052
Opened 21 years ago
Closed 21 years ago
Select box does not shows correctly option name
Categories
(Core :: Layout: Form Controls, defect, P1)
Tracking
()
RESOLVED
FIXED
People
(Reporter: agr, Assigned: roc)
References
()
Details
(Keywords: testcase)
Attachments
(4 files)
(deleted),
text/html
|
Details | |
(deleted),
text/plain
|
Details | |
(deleted),
text/html
|
Details | |
(deleted),
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031215 Firebird/0.7
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031215 Firebird/0.7
Hi,
I tried to understand why and when the bug show up, but I was not successfull.
I experienced the problem with Firebird 0.7 under GNU/Linux (Debian sid) and
window 2000, the problem show up also on Mozilla 1.5 (Debian package 1.5-3)
always with the same html code I made. (my html code is bad and ugly, sorry
about that)
In order to experience the bug, just go to this address :
http://www.amigrave.com/select_box_bug/
Use the very first selectbox and select a value greater than 9 ... eg 14,
once selected, only the first digit will be diplayed (eg 1 if you selected 14)
The second select box will have the same behaviour, but the other ones (the one
that are used for a birthdate) are ok.
I wished i could help more than just reporting the bug.
Reproducible: Always
Steps to Reproduce:
1. go to http://www.amigrave.com/select_box_bug/
2. use the first select box and select 14
Actual Results:
The select box doesn't display correctly the selected option name.
Expected Results:
Should be displayed correctly
Comment 1•21 years ago
|
||
- This occurs only in quirk mode.
- Neither TABLE nor DD can be removed from the minimal testcase
Comment 2•21 years ago
|
||
Confirming on a 20031220 Linux CVS build. -> Layout: Form Controls
Assignee: general → form
Status: UNCONFIRMED → NEW
Component: Browser-General → Layout: Form Controls
Ever confirmed: true
QA Contact: general → ian
Comment 3•21 years ago
|
||
Is this a reflow or painting problem?
Assignee | ||
Comment 4•21 years ago
|
||
Not sure. Probably reflow. Definitely not an invalidation problem.
Assignee: form → roc
Assignee | ||
Updated•21 years ago
|
Priority: -- → P2
Assignee | ||
Comment 5•21 years ago
|
||
Hmm, a frame dump seems to show that the text frame is actually holding the
string "1". Okay...
Assignee | ||
Comment 6•21 years ago
|
||
This bug is quite a bad regression in basic forms functionality...
Flags: blocking1.6?
Assignee | ||
Comment 7•21 years ago
|
||
It appears to be related to the DD quirk in quirks.css
Assignee | ||
Comment 8•21 years ago
|
||
Assignee | ||
Comment 9•21 years ago
|
||
Also, I get this interesting warning:
WARNING: blowing an incremental reflow targeted at a nested inline, file
nsBlockFrame.cpp, line 1575
Assignee | ||
Comment 10•21 years ago
|
||
OK, so what appears to be happening is that the block frame is dropping (or
mistargeting) the incremental reflow that is supposed to reflow the text frame
in the combobox's display area. Thus the text frame never updates its content
offset and length. This could be tough :-)
Assignee | ||
Comment 11•21 years ago
|
||
The bug seems to be that the line containing the dd:before's newline should be
marked as break-after, but isn't.
Assignee | ||
Comment 12•21 years ago
|
||
Here's a standards-mode reduced testcase.
Apparently white-space:pre line breaks never cause a line break type to be
recorded, probably because of this code around nsBlockFrame:3697:
if (breakType == NS_STYLE_CLEAR_LINE) {
if (!aLineLayout.GetLineEndsInBR()) {
breakType = NS_STYLE_CLEAR_NONE;
}
}
I'm not quite sure why this is being done...
Assignee | ||
Comment 13•21 years ago
|
||
Removing that code does fix the bug. The question is, what does it break :-).
Comment 15•21 years ago
|
||
Changing to blocking1.6- because:
* the bug is rather rare since it requires a complicated set of conditions to
see the bug
* this regressed between 0.9.7 and 0.9.9, so we've lived with it for a few
years without anyone noticing
* the patch seems like it could be risky.
It would be good to fix this on the trunk, though.
Flags: blocking1.6+ → blocking1.6-
Comment 16•21 years ago
|
||
roc accidentally checked in the change described in comment 12 and it caused bug
230852.
Assignee | ||
Comment 17•21 years ago
|
||
Here's a simple, logical patch that doesn't cause the regression in bug 230852.
Assignee | ||
Updated•21 years ago
|
Attachment #139353 -
Flags: superreview?(dbaron)
Attachment #139353 -
Flags: review?(dbaron)
Updated•21 years ago
|
Attachment #139353 -
Flags: superreview?(dbaron)
Attachment #139353 -
Flags: superreview+
Attachment #139353 -
Flags: review?(dbaron)
Attachment #139353 -
Flags: review+
Assignee | ||
Updated•21 years ago
|
Priority: P2 → P1
Assignee | ||
Comment 18•21 years ago
|
||
fix checked in
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•