Closed Bug 1140216 Opened 10 years ago Closed 10 years ago

"Assertion failure: mSpinDown" with CSS: input { -moz-appearance: textfield; }

Categories

(Core :: Layout: Form Controls, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: jruderman, Assigned: bzbarsky)

References

Details

(Keywords: assertion, testcase)

Attachments

(3 files)

Attached file testcase
Assertion failure: mSpinDown, at layout/forms/nsNumberControlFrame.cpp:818
Attached file stack
So apparently we do this purposefully! In nsNumberControlFrame::CreateAnonymousContent we skip creating mSpinBox, mSpinUp, and mSpinDown if StyleDisplay()->mAppearance == NS_THEME_TEXTFIELD. Which means that asserting anything about them existing is just bogus, since clearly they don't have to exist. The asserts were added in the same bug as the check above (bug 947728) and I think they just need to go away.
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Comment on attachment 8573701 [details] [diff] [review] Remove asserts that stuff that we never create is not null, since it clearly is null For consistency add the comment to the nsCSSPseudoElements::ePseudo_mozNumberSpinUp case too.
Attachment #8573701 - Flags: review?(jwatt) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: