Closed
Bug 515703
Opened 15 years ago
Closed 15 years ago
"ASSERTION: What happened here?" in nsHTMLFormElement::GetDefaultSubmitElement
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: bzbarsky)
References
Details
(Keywords: assertion, regression, testcase)
Attachments
(2 files, 2 obsolete files)
10.26 KB,
text/plain
|
Details | |
10.26 KB,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
layout/reftests/bugs/352980-3d.html triggers:
###!!! ASSERTION: What happened here?: 'mDefaultSubmitElement == mFirstSubmitInElements || mDefaultSubmitElement == mFirstSubmitNotInElements', file /Users/jruderman/central/content/html/content/src/nsHTMLFormElement.cpp, line 1747
Could this be related to the recent change in bug 513153?
Assignee | ||
Comment 1•15 years ago
|
||
My local build with that change is not showing this bug.
Assignee | ||
Comment 2•15 years ago
|
||
No assertion after updating to tip either. This is the case with both the normal and the HTML5 parser. I'm on Mac. Jesse, are you seeing this on Mac? If so, what else are you doing that's interesting to trigger it?
Reporter | ||
Comment 3•15 years ago
|
||
Yes, I'm testing on Mac. I still get it after updating and using a fresh profile. It asserts with HTML5 parser both on and off. rev b11f8b61ce71+
So, I don't know what extra thing I'm doing to trigger it :(
Reporter | ||
Comment 4•15 years ago
|
||
Btw, I'm loading the test directly, not as part of the test suite.
Reporter | ||
Comment 5•15 years ago
|
||
Assignee | ||
Comment 6•15 years ago
|
||
I was testing rev 613cf52be14d, and also loading directly from a file:// url....
Assignee | ||
Comment 7•15 years ago
|
||
So what happens here is that inside a single update we first remove the node from the form and then do the rest of the attribute change, including the IntrinsicState() get when notifying on this stuff. Since the mFirstSubmitElement doesn't get updated until after the update finishes, we run into this assertion.
Assignee | ||
Comment 8•15 years ago
|
||
Assignee | ||
Comment 9•15 years ago
|
||
Attachment #399939 -
Attachment is obsolete: true
Attachment #399940 -
Flags: review?(jst)
Attachment #399939 -
Flags: review?(jst)
Assignee | ||
Comment 10•15 years ago
|
||
Attachment #399940 -
Attachment is obsolete: true
Attachment #399947 -
Flags: review?(jst)
Attachment #399940 -
Flags: review?(jst)
Updated•15 years ago
|
Attachment #399947 -
Flags: superreview+
Attachment #399947 -
Flags: review?(jst)
Attachment #399947 -
Flags: review+
Assignee | ||
Comment 11•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•