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)
Toolkit
Add-ons Manager
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.
| Assignee | ||
Comment 1•11 years ago
|
||
Are you guys ok with this change?
Flags: needinfo?(dtownsend+bugmail)
Flags: needinfo?(bmcbride)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → evold
| Assignee | ||
Updated•11 years ago
|
Blocks: native-jetpack
Comment 2•11 years ago
|
||
(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)
Comment 3•11 years ago
|
||
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.
| Assignee | ||
Comment 4•11 years ago
|
||
Due to the discussion in bug 1009332 I don't think bug 915376 is a dependency here any longer.
No longer blocks: native-jetpack
| Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8422686 -
Flags: review?(bmcbride)
| Assignee | ||
Comment 6•11 years ago
|
||
Updated•11 years ago
|
Attachment #8422686 -
Flags: review?(bmcbride) → review-
| Assignee | ||
Comment 7•11 years ago
|
||
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 8•11 years ago
|
||
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+
| Assignee | ||
Comment 9•11 years ago
|
||
I had to back this out in http://hg.mozilla.org/integration/fx-team/rev/2518abfa2b68 for mochitest-browser-chrome-3 and mochitest-other test failures:
https://tbpl.mozilla.org/php/getParsedLog.php?id=39978301&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=39978910&tree=Fx-Team
Flags: needinfo?(evold)
And mochitest-devtools just failed with https://tbpl.mozilla.org/php/getParsedLog.php?id=39979922&tree=Fx-Team
| Assignee | ||
Comment 12•11 years ago
|
||
Flags: needinfo?(evold)
| Assignee | ||
Comment 13•11 years ago
|
||
I see the issue now.. update made, new try:
https://tbpl.mozilla.org/?tree=Try&rev=d8198d52cbb6
| Assignee | ||
Comment 14•11 years ago
|
||
saw another issue, trying again:
https://tbpl.mozilla.org/?tree=Try&rev=0d3d4dad85fa
| Assignee | ||
Comment 15•11 years ago
|
||
trying again: https://tbpl.mozilla.org/?tree=Try&rev=0af7f1fe2b50
| Assignee | ||
Comment 16•11 years ago
|
||
trying again https://tbpl.mozilla.org/?tree=Try&rev=5e30a28ffc72
| Assignee | ||
Comment 17•11 years ago
|
||
| Assignee | ||
Comment 18•11 years ago
|
||
Comment 19•11 years ago
|
||
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.
Description
•