Closed
Bug 468210
Opened 16 years ago
Closed 16 years ago
[FIX]Crash [@ nsHTMLDocument::MatchAnchors] with XBL
Categories
(Core :: XBL, defect)
Tracking
()
VERIFIED
FIXED
mozilla1.9.2a1
People
(Reporter: jruderman, Assigned: bzbarsky)
References
Details
(5 keywords)
Crash Data
Attachments
(2 files)
(deleted),
application/xhtml+xml
|
Details | |
(deleted),
patch
|
sicking
:
review+
sicking
:
superreview+
beltzner
:
approval1.9.1+
dveditz
:
approval1.9.0.6+
|
Details | Diff | Splinter Review |
MatchAnchors complains about two assertion failures, then dereferences null.
###!!! ASSERTION: This method should never be called on content nodes that are not in a document!: 'aContent->IsInDoc()', file /Users/jruderman/central/content/html/document/src/nsHTMLDocument.cpp, line 1675
###!!! ASSERTION: Huh, how did this happen? This should only be used with HTML documents!: 'htmldoc', file /Users/jruderman/central/content/html/document/src/nsHTMLDocument.cpp, line 1682
Assignee | ||
Comment 1•16 years ago
|
||
Similar to bug 406900. In this case we null out the binding parent of the anon content but not its content parent, which makes it think it's in the non-anonymous DOM, and then things go bad.
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #352062 -
Flags: superreview?(jonas)
Attachment #352062 -
Flags: review?(jonas)
Assignee | ||
Updated•16 years ago
|
Summary: Crash [@ nsHTMLDocument::MatchAnchors] with XBL → [FIX]Crash [@ nsHTMLDocument::MatchAnchors] with XBL
Comment on attachment 352062 [details] [diff] [review]
Proposed fix
Nice, I suspect this was the originally intended behavior with the existing |UnbindFromTree| call. I wonder if that is needed at all any more...
Attachment #352062 -
Flags: superreview?(jonas)
Attachment #352062 -
Flags: superreview+
Attachment #352062 -
Flags: review?(jonas)
Attachment #352062 -
Flags: review+
Assignee | ||
Comment 3•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Assignee | ||
Comment 4•16 years ago
|
||
Comment on attachment 352062 [details] [diff] [review]
Proposed fix
I think we should take this on branches.
Attachment #352062 -
Flags: approval1.9.1?
Attachment #352062 -
Flags: approval1.9.0.6?
Updated•16 years ago
|
Whiteboard: [needs 1.9.1 approval and landing]
Comment 5•16 years ago
|
||
Comment on attachment 352062 [details] [diff] [review]
Proposed fix
a191=beltzner
Attachment #352062 -
Flags: approval1.9.1? → approval1.9.1+
Assignee | ||
Comment 6•16 years ago
|
||
Keywords: fixed1.9.1
Whiteboard: [needs 1.9.1 approval and landing]
Comment 7•16 years ago
|
||
Comment on attachment 352062 [details] [diff] [review]
Proposed fix
Approved for 1.9.0.6, a=dveditz for release-drivers.
Attachment #352062 -
Flags: approval1.9.0.6? → approval1.9.0.6+
Comment 9•16 years ago
|
||
Running the attached testcase on 3.0.5 on OS X, I get no crash. Is this a crash in debug builds only?
Assignee | ||
Comment 10•16 years ago
|
||
No, since it's a null-pointer dereference. But the behavior will be gc-dependent and such, so if there was a change to that or to XBL unbinding since 1.9.0 it might require a slightly different testcase to trigger tehre.
Comment 11•16 years ago
|
||
Yeah, it doesn't work on OS X and I checked on Linux too, just because.
Comment 12•16 years ago
|
||
Verified for 1.9.1 with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090115 Shiretoko/3.1b3pr.
Keywords: fixed1.9.1 → verified1.9.1
Comment 13•16 years ago
|
||
Verified with:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2a1pre) Gecko/20090122 Minefield/3.2a1pre ID:20090122020333
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.6) Gecko/2009011912 Firefox/3.0.6
Status: RESOLVED → VERIFIED
Keywords: fixed1.9.0.6 → verified1.9.0.6
Hardware: x86 → All
Target Milestone: --- → mozilla1.9.2a1
Updated•13 years ago
|
Crash Signature: [@ nsHTMLDocument::MatchAnchors]
You need to log in
before you can comment on or make changes to this bug.
Description
•