Closed Bug 553113 Opened 15 years ago Closed 15 years ago

Update checks for lightweight themes

Categories

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

defect

Tracking

()

VERIFIED FIXED
mozilla1.9.3a5

People

(Reporter: mossop, Assigned: mossop)

References

Details

(Whiteboard: [rewrite])

Attachments

(1 file, 1 obsolete file)

No description provided.
Flags: in-testsuite+
Flags: in-litmus-
Whiteboard: [rewrite] → [rewrite][fixed-in-addonsmgr][needs-review]
Adds update checking for the current lightweight theme to match what happens on trunk. May want to switch this to using the new API properly in the future.
Attachment #435765 - Flags: review?(robert.bugzilla)
Comment on attachment 435765 [details] [diff] [review] Perform update check for the current lightweight theme >diff --git a/toolkit/mozapps/extensions/LightweightThemeManager.jsm b/toolkit/mozapps/extensions/LightweightThemeManager.jsm >--- a/toolkit/mozapps/extensions/LightweightThemeManager.jsm >+++ b/toolkit/mozapps/extensions/LightweightThemeManager.jsm >@@ -129,26 +129,26 @@ var LightweightThemeManager = { > JSON.stringify(aData)); > > if (aData) { >- let theme = this.getUsedTheme(aData.id); >- // TODO detect if it is an install and act accordingly >- if (!theme) { >+ var theme = this.getUsedTheme(aData.id); >+ var isInstall = !theme || theme.version != aData.version; Why the switch from let to var? Looks like both of these could be let >+ if (isInstall) { >+ var oldWrapper = theme ? new AddonWrapper(theme) : null; > var wrapper = new AddonWrapper(aData); > AddonManagerPrivate.callInstallListeners("onExternalInstall", null, >- wrapper, null, false); >+ wrapper, oldWrapper, false); > AddonManagerPrivate.callAddonListeners("onInstalling", wrapper, false); > } >+
Attachment #435765 - Flags: review?(robert.bugzilla) → review+
Whiteboard: [rewrite][fixed-in-addonsmgr][needs-review] → [rewrite][fixed-in-addonsmgr]
Attached patch patch rev 2Splinter Review
Comments addressed
Attachment #435765 - Attachment is obsolete: true
Attachment #437333 - Flags: review+
Whiteboard: [rewrite][fixed-in-addonsmgr] → [rewrite][fixed-in-addonsmgr][needs-landing]
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [rewrite][fixed-in-addonsmgr][needs-landing] → [rewrite]
Target Milestone: --- → mozilla1.9.3a5
Does it mean updates can not be checked manually via the UI or is the context menu entry just disabled for now? If it's the latter case I would file a new bug.
(In reply to comment #6) > Does it mean updates can not be checked manually via the UI or is the context > menu entry just disabled for now? If it's the latter case I would file a new > bug. We're not going to offer users the ability to check for updates to personas.
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.

Attachment

General

Created:
Updated:
Size: