Closed Bug 84175 Opened 24 years ago Closed 24 years ago

nsHTMLEditor::IsEmptyCell should be rewritten

Categories

(Core :: DOM: Editor, defect)

defect
Not set
normal

Tracking

()

CLOSED FIXED
mozilla0.9.2

People

(Reporter: Brade, Assigned: cmanske)

References

Details

Attachments

(2 files)

I noticed these things when looking at the source code for nsHTMLEditor::IsEmptyCell (in nsTableEditor.cpp): * the method returns a PRBool, but we return an nsresult if we get an error after called GetFirstChild. * we don't do any further error checking (we get "res" in the call to GetNextSibling but we ignore that value and we don't even get it for "IsEmptyNode" call
Attached patch Fix.Splinter Review
easy fix.
Status: NEW → ASSIGNED
Keywords: patch, review
Whiteboard: FIX IN HAND need r=, sr=
Target Milestone: --- → mozilla0.9.2
r=brade
Whiteboard: FIX IN HAND need r=, sr= → FIX IN HAND need sr=, a=
Whiteboard: FIX IN HAND need sr=, a= → FIX IN HAND need a=
Blocks: 83989
a= asa@mozilla.org for checkin to the trunk. (on behalf of drivers)
Whiteboard: FIX IN HAND need a= → fixed, reviewed, a=asa
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Keywords: patch, review
Resolution: --- → FIXED
Whiteboard: fixed, reviewed, a=asa → fixed, reviewed
cleaning up whiteboard
Whiteboard: fixed, reviewed
Charley/Kathy, please mark verify this one and mark verified-fixed...thx.
verify; closing
Status: RESOLVED → CLOSED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: