Closed Bug 281862 Opened 21 years ago Closed 19 years ago

AutoComplete MDBResult's GetCommentAt method returns NS_ERROR_NOT_IMPLEMENTED but it is!

Categories

(Toolkit :: Autocomplete, defect)

1.8 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.8.1beta1

People

(Reporter: bugs, Assigned: zeniko)

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

Witness the insanity: http://lxr.mozilla.org/seamonkey/source/toolkit/components/autocomplete/src/nsAutoCompleteMdbResult.cpp#128 nsAutoCompleteMdbResult::GetCommentAt is properly implemented except some bozo *kicks hewitt* forgot to change return NS_ERROR_NOT_IMPLEMENTED to return NS_OK! This doesn't affect any Firefox code since all the uses are in C++ and they all ignore the error code... in JS however not only does it throw, it also doesn't return the out param, meaning that I can't even paper over it with try..catch because it'd still not give me any useful data. This shipped with 1.0 to 25 million people. Curses. C++ shim, here I come.... but let's fix it anyway.
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.8beta2
Attached patch return NS_OKSplinter Review
Any reason this obvious one-line fix should not get in for Firefox 1.5?
Attachment #198768 - Flags: first-review?(bugs)
Flags: blocking1.8rc1?
Flags: blocking1.8rc1? → blocking1.8rc1-
Comment on attachment 198768 [details] [diff] [review] return NS_OK driveby r=me, probably useful for Fx2 at some point.
Attachment #198768 - Flags: first-review?(bugs) → first-review+
Attachment #198768 - Flags: second-review?(bryner)
Attachment #198768 - Flags: approval1.8.1?
Comment on attachment 198768 [details] [diff] [review] return NS_OK This code is disappearing on the 1.8 branch.
Attachment #198768 - Flags: approval1.8.1? → approval1.8.1-
Attachment #198768 - Flags: second-review?(bryner) → second-review+
Comment on attachment 198768 [details] [diff] [review] return NS_OK Or not... ;)
Attachment #198768 - Flags: approval1.8.1- → approval-branch-1.8.1?(benjamin)
Assignee: bugs → zeniko
Status: ASSIGNED → NEW
Whiteboard: [checkin needed]
Priority: P3 → --
Target Milestone: mozilla1.8beta2 → mozilla1.8.1beta1
Version: unspecified → 1.8 Branch
Attachment #198768 - Flags: approval-branch-1.8.1?(benjamin) → approval-branch-1.8.1+
mozilla/toolkit/components/autocomplete/src/nsAutoCompleteMdbResult.cpp 1.9.10.2 mozilla/toolkit/components/autocomplete/src/nsAutoCompleteMdbResult.cpp 1.13
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: