Closed Bug 553872 Opened 15 years ago Closed 15 years ago

Addon.pendingOperations doesn't indicate PENDING_INSTALL when upgrade requires restart

Categories

(Toolkit :: Add-ons Manager, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9.3a5

People

(Reporter: Unfocused, Assigned: mossop)

References

Details

(Whiteboard: [rewrite])

Attachments

(1 file)

Addon.pendingOperations doesn't indicate PENDING_INSTALL when an upgrade has been installed and requires a restart. Specifically, this is because the check in the pendingOperations getter only checks if the addon exists in the database (and is therefore a new install).
I've added a PENDING_UPGRADE bit on the rationale that we have two Addon instances here, one is installed and will be replaced on the next restart which is PENDING_UPGRADE, the other is waiting to replace it on the next restart, that is PENDING_INSTALL. I've also added the pendingUpgrade property to return the Addon that will replace the Addon on the next restart. http://hg.mozilla.org/projects/addonsmgr/rev/a029ad469828
Assignee: nobody → dtownsend
Status: NEW → ASSIGNED
Flags: in-testsuite+
Flags: in-litmus-
Whiteboard: [rewrite] → [rewrite][fixed-in-addonsmgr]
Whiteboard: [rewrite][fixed-in-addonsmgr] → [rewrite][fixed-in-addonsmgr][needs-review]
Attached patch patch rev 1Splinter Review
Adds the PENDING_UPGRADE bit and the pendingUpgrade property.
Attachment #435795 - Flags: review?(robert.bugzilla)
Attachment #435795 - Flags: review?(robert.bugzilla) → review+
Whiteboard: [rewrite][fixed-in-addonsmgr][needs-review] → [rewrite][fixed-in-addonsmgr]
Whiteboard: [rewrite][fixed-in-addonsmgr] → [rewrite][fixed-in-addonsmgr][needs-landing]
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [rewrite][fixed-in-addonsmgr][needs-landing] → [rewrite]
Target Milestone: --- → mozilla1.9.3a5
Verified fixed by check-in. This function has been moved to XPIProvider.jsm meanwhile.
Status: RESOLVED → VERIFIED
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: