Closed Bug 178725 Opened 22 years ago Closed 22 years ago

nsPlainTextEditor::Cut returns NS_ERROR_NOT_AVAILABLE where there is no selection

Categories

(Core :: DOM: Editor, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.3alpha

People

(Reporter: mkaply, Assigned: Brade)

Details

(Whiteboard: midas)

Attachments

(1 file)

Currently nsPlainTextEditor::Cut  returns NS_ERROR_NOT_AVAILABLE where there is
no selection.

This seems awfully heavy handed for this error. 

The correct implementation is probably not to do anything and just return NS_OK.

This allows javascript that calls this not to fail miserably.
kin--I'm taking this bug; grab it back if you really want to fix it.
Assignee: kin → brade
Whiteboard: midas
Target Milestone: --- → mozilla1.3alpha
Attached patch return NS_OKSplinter Review
Attachment #106103 - Flags: superreview?(kin)
Attachment #106103 - Flags: review?(akkana)
Comment on attachment 106103 [details] [diff] [review]
return NS_OK

r=akkana
Attachment #106103 - Flags: review?(akkana) → review+
Comment on attachment 106103 [details] [diff] [review]
return NS_OK

sr=kin@netscape.com
Attachment #106103 - Flags: superreview?(kin) → superreview+
fix checked in last week
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: