Closed
Bug 264733
Opened 20 years ago
Closed 20 years ago
add assertion for aParentFrame
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bernd_mozilla, Assigned: bernd_mozilla)
References
()
Details
Attachments
(1 file)
|
7.93 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
I have seen a maybe valid talkback that crashed inside GetFrameAtOrBefore my guess would be that aParentFrame was null. I would like to assert that a valid parentframe is passed in in order to catch that crash.
usually this function will be called with "this" there is only one exception http://lxr.mozilla.org/seamonkey/source/layout/html/table/src/nsTableFrame.cpp#890 I wonder whether I should change the function call from nsTableColGroupFrame& aColGroupFrame, to nsTableColGroupFrame* aColGroupFrame, and bail out with an invalid arg assertion if this is null. Or simply assert and wait till talkback will get some info. Boris, any comments?
Comment 2•20 years ago
|
||
Changing to using a pointer sounds very very good to me. For the rest, if you can't think of valid cases where it would be null, I'd just NS_PRECONDITION it.
Comment on attachment 163214 [details] [diff] [review] patch Boris, this is for review just when you have nothing else to do :-).
Attachment #163214 -
Flags: superreview?(bzbarsky)
Attachment #163214 -
Flags: review?(bzbarsky)
Comment 5•20 years ago
|
||
Comment on attachment 163214 [details] [diff] [review] patch r+sr=bzbarsky
Attachment #163214 -
Flags: superreview?(bzbarsky)
Attachment #163214 -
Flags: superreview+
Attachment #163214 -
Flags: review?(bzbarsky)
Attachment #163214 -
Flags: review+
fix checked in
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•