Closed Bug 366205 Opened 18 years ago Closed 17 years ago

"ASSERTION: Shouldn't hit this case -- we should a be a combobox if we have no size set and no multiple set!"

Categories

(Core :: Layout: Form Controls, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: assertion, testcase)

Attachments

(2 files, 1 obsolete file)

Attached file testcase
Clicking the button in the testcase triggers an assertion:

###!!! ASSERTION: Shouldn't hit this case -- we should a be a combobox if we have no size set and no multiple set!: 'Not Reached', file /Users/admin/trunk/mozilla/layout/forms/nsListControlFrame.cpp, line 1988

This assertion appears to have been added by the landing of the reflow branch.
I can't seem to reproduce this.  Can you post the stack to the assertion?
Hmm, I had to load it from file:/// to reproduce the assertion.
Attached patch Fix, sort of (obsolete) — Splinter Review
This seems like the right thing to do, and fixes this bug for me (I could also reproduce when loading locally only).

However, this makes the "wasDirty lied" assertion to appear a _lot_ more often (3-4 times during startup for me)...  I blame scrollbars, but maybe we want to hold off on taking this patch until the scrollbar thing is resolved?
Attachment #251149 - Flags: superreview?(dbaron)
Attachment #251149 - Flags: review?(dbaron)
Comment on attachment 251149 [details] [diff] [review]
Fix, sort of

r+sr=dbaron.  I think the scrollbar thing is resolved now, no?
Attachment #251149 - Flags: superreview?(dbaron)
Attachment #251149 - Flags: superreview+
Attachment #251149 - Flags: review?(dbaron)
Attachment #251149 - Flags: review+
Comment on attachment 251149 [details] [diff] [review]
Fix, sort of

I actually thought about this some more, and I'm not happy with this patch... this makes a reflow-only flush also flush out style reresolves, which means it becomes unsafe to do those flushes from frame code.  Sadly, we have frames which do that.  :(
Attachment #251149 - Attachment is obsolete: true
Attachment #251149 - Flags: superreview-
Attachment #251149 - Flags: superreview+
Attachment #251149 - Flags: review-
Attachment #251149 - Flags: review+
Bug 375436 has similar issues.  Let's see what happens there.
Depends on: 375436
WFM, Mac trunk debug.

bz, you had a patch here, but I'm guessing based on your comments that it's no longer useful.
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite?
Resolution: --- → WORKSFORME
Crashtest checked in.
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: