Closed Bug 1009328 Opened 11 years ago Closed 11 years ago

Change the signature of callBootstrapMethod to be more flexible for changes

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33

People

(Reporter: evold, Assigned: evold)

Details

Attachments

(1 file)

At the moment the signature is function XPI_callBootstrapMethod(aId, aVersion, aType, aFile, aMethod, aReason, aExtraParams) I"d like to change it to be function XPI_callBootstrapMethod(aAddon, aFile, aMethod, aReason, aExtraParams) This way add-on objects, or pseudo `{ id: '', version, '', type: '' }` add-on like objects can be used easily, and one doesn't have to explicitly change every usage of callBootstrapMethod when adding more inputs. So far this is part of my patch in bug 915376, but I would like to land this change separately.
Are you guys ok with this change?
Flags: needinfo?(dtownsend+bugmail)
Flags: needinfo?(bmcbride)
Assignee: nobody → evold
(In reply to Erik Vold [:erikvold] [:ztatic] from comment #0) > function XPI_callBootstrapMethod(aAddon, aFile, aMethod, aReason, > aExtraParams) Yesplz.
Flags: needinfo?(dtownsend+bugmail)
Flags: needinfo?(bmcbride)
Pseudo objects make me a little wary but maybe put some tests at the top of callBootstrapMethod to make sure it's been called with something that has all the properties it expects and throws a sane error if not.
Due to the discussion in bug 1009332 I don't think bug 915376 is a dependency here any longer.
No longer blocks: native-jetpack
Attachment #8422686 - Flags: review?(bmcbride) → review-
Comment on attachment 8422686 [details] [review] Link to Github pull-request: https://github.com/mozilla/gecko-dev/pull/28 updates made, changed aAddonDetails to be aAddon and removed the usages of aId, aVersion, and aType in `callBootstrapMethod`
Attachment #8422686 - Flags: review- → review?(bmcbride)
Comment on attachment 8422686 [details] [review] Link to Github pull-request: https://github.com/mozilla/gecko-dev/pull/28 r+ with a fixup to the error handling.
Attachment #8422686 - Flags: review?(bmcbride) → review+
I see the issue now.. update made, new try: https://tbpl.mozilla.org/?tree=Try&rev=d8198d52cbb6
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: