Closed Bug 366387 Opened 19 years ago Closed 19 years ago

HelperApps prototype has duplicated functions (AddObserver/RemoveObserver) and is missing onBeginUpdateBatch/onEndUpdateBatch

Categories

(Toolkit :: Downloads API, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha5

People

(Reporter: Gavin, Assigned: regis.caspar+bz)

References

()

Details

Attachments

(1 file)

Only a small subset of this wrapper's functinality is actually used by any in-tree code. I don't know whether this helper is actually used by anyone outside of our tree, but if it isn't, we should strongly consider either getting rid of it, or at least trimming it down to remove all of the unused stuff. Unfortunately, I suspect it is likely to be used by extensions, so we might have to just fix the following two bugs: 1) AddObserver/RemoveObserver on this object are defined twice. The second definitions currently win, and are more consistent with the object's goal of being a wrapper for, so the first definitions should be removed. 2) Since the object is supposed to implement nsIRDFObserver, it should have onBeginUpdateBatch/onEndUpdateBatch methods (that forward to all the observers like the rest of the nsIRDFObserver methods do). I guess we're just lucky that no one ever batches updates to this specific datasource, or something. (I'm filing this in Firefox because toolkit has no suitable component. I wish bug 350204 was fixed!)
Attached patch patch v1 — — Splinter Review
Patch removing AddObserver and RemoveObserver first definitions and adding onBeginUpdateBatch and onEndUpdateBatch.
Assignee: nobody → regis.caspar+bz
Status: NEW → ASSIGNED
Attachment #251025 - Flags: review?(gavin.sharp)
Comment on attachment 251025 [details] [diff] [review] patch v1 I thought I'd reviewed this already :( Sorry for the delay.
Attachment #251025 - Flags: review?(gavin.sharp) → review+
Keywords: helpwanted
Whiteboard: [checkin needed]
No problem, thanks for the review.
Checking in helperApps.js; /cvsroot/mozilla/toolkit/mozapps/downloads/content/helperApps.js,v <-- helperApps.js new revision: 1.11; previous revision: 1.10 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Target Milestone: --- → Firefox 3 alpha5
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: