Closed
Bug 553967
Opened 15 years ago
Closed 15 years ago
Add a direct way to get to the AddonInstall from an Addon that is pending upgrade
Categories
(Toolkit :: Add-ons Manager, defect, P2)
Toolkit
Add-ons Manager
Tracking
()
VERIFIED
FIXED
mozilla1.9.3a5
People
(Reporter: mossop, Assigned: mossop)
References
Details
(Whiteboard: [rewrite])
Attachments
(1 file, 1 obsolete file)
6.57 KB,
patch
|
mossop
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•15 years ago
|
||
I think the most consistent way to do this would be to have an "install" property on Addons that are pending install. So Addon.install points to the AddonInstall and AddonInstall.addon points to the new Addon and Addon.pendingUpgrade.install would point to the AddonInstall upgrading an Addon.
Comment 2•15 years ago
|
||
Flags: in-testsuite+
Whiteboard: [rewrite] → [rewrite][fixed-in-addonsmgr]
Comment 3•15 years ago
|
||
I assume we do not need a manual test here. If I'm wrong please re-flag.
Assignee: dtownsend → bmcbride
Status: NEW → ASSIGNED
Flags: in-litmus-
Comment 4•15 years ago
|
||
Oops, I missed that. Correct - automated testing covers this completely.
Assignee | ||
Comment 5•15 years ago
|
||
This doesn't seem to have been implemented in the way described in comment 1, looks like you've put the install property on the Addon that is pending upgrade as opposed to the Addon that the AddonInstall is installing.
Assignee | ||
Comment 6•15 years ago
|
||
Backed out the original changeset with http://hg.mozilla.org/projects/addonsmgr/rev/3399677bafaa and landed a fixed version at http://hg.mozilla.org/projects/addonsmgr/rev/8aec62049ba2
Assignee | ||
Updated•15 years ago
|
Whiteboard: [rewrite][fixed-in-addonsmgr] → [rewrite][fixed-in-addonsmgr][needs-review]
Assignee | ||
Comment 7•15 years ago
|
||
Adds an Addon.install property to get the AddonInstall that is installing it.
Attachment #435771 -
Flags: review?(robert.bugzilla)
Assignee | ||
Updated•15 years ago
|
Assignee: bmcbride → dtownsend
![]() |
||
Comment 8•15 years ago
|
||
Comment on attachment 435771 [details] [diff] [review]
Add Addon.install property
Looks good
>diff --git a/toolkit/mozapps/extensions/XPIProvider.jsm b/toolkit/mozapps/extensions/XPIProvider.jsm
>--- a/toolkit/mozapps/extensions/XPIProvider.jsm
>+++ b/toolkit/mozapps/extensions/XPIProvider.jsm
>...
>@@ -3820,6 +3826,14 @@ function AddonWrapper(addon) {
> addon.updateAutomatically = val;
> });
>
>+ this.__defineGetter__("install", function() {
>+ if (!("_install" in addon))
>+ return null;
>+ if (!addon._install)
>+ return null;
Why not check both on one line?
Attachment #435771 -
Flags: review?(robert.bugzilla) → review+
![]() |
||
Updated•15 years ago
|
Whiteboard: [rewrite][fixed-in-addonsmgr][needs-review] → [rewrite][fixed-in-addonsmgr]
Assignee | ||
Comment 9•15 years ago
|
||
Ready to land
Attachment #435771 -
Attachment is obsolete: true
Attachment #437077 -
Flags: review+
Assignee | ||
Updated•15 years ago
|
Whiteboard: [rewrite][fixed-in-addonsmgr] → [rewrite][fixed-in-addonsmgr][needs-landing]
Assignee | ||
Comment 10•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [rewrite][fixed-in-addonsmgr][needs-landing] → [rewrite]
Target Milestone: --- → mozilla1.9.3a5
Comment 11•15 years ago
|
||
Marking as verified fixed based on check-in and passing automated tests.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•