Closed Bug 454546 Opened 16 years ago Closed 16 years ago

Update EM and blocklist service to be initialised on profile-after-change

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
minor

Tracking

()

VERIFIED FIXED
mozilla1.9.1b3

People

(Reporter: mossop, Assigned: mossop)

Details

(Keywords: verified1.9.1)

Attachments

(1 file, 2 obsolete files)

Currently both services initialise at app-startup just so they can register a few notifications then do all their processing at profile-after-change anyway. Might as well simplify that now bug 452486 is fixed
Whiteboard: [good first bug]
Attached patch patch rev 1 (obsolete) — Splinter Review
Simple patch to do this. The profile-after-change category doesn't support the service flag, it just always gets components as services.
Assignee: nobody → dtownsend
Status: NEW → ASSIGNED
Attachment #345942 - Flags: review?(robert.bugzilla)
Comment on attachment 345942 [details] [diff] [review] patch rev 1 Dave, with this change can't the adding of the quit-application observer, etc. also be removed? observe: function EM_observe(subject, topic, data) { switch (topic) { case "profile-after-change": gOS.addObserver(this, "quit-application", false); this._profileSelected(); break; case "quit-application-requested": this._confirmCancelDownloadsOnQuit(subject); break; case "offline-requested": this._confirmCancelDownloadsOnOffline(subject); break; case "quit-application": gOS.removeObserver(this, "quit-application"); break; case "xpcom-shutdown": this._shutdown(); break; case "nsPref:changed": if (data == PREF_EM_LOGGING_ENABLED) this._loggingToggled(); else if (data == PREF_EM_CHECK_COMPATIBILITY || data == PREF_EM_CHECK_UPDATE_SECURITY) this._updateAppDisabledState(); else if ((data == PREF_MATCH_OS_LOCALE) || (data == PREF_SELECTED_LOCALE)) this._updateLocale(); break; } },
Attached patch patch rev 2 (obsolete) — Splinter Review
Yeah hadn't spotted that, done the same with the blocklist service too.
Attachment #345942 - Attachment is obsolete: true
Attachment #346020 - Flags: review?(robert.bugzilla)
Attachment #345942 - Flags: review?(robert.bugzilla)
Attachment #346020 - Flags: review?(robert.bugzilla) → review+
Whiteboard: [good first bug]
Comment on attachment 346020 [details] [diff] [review] patch rev 2 This is a trivial fix that slightly reduces calls into the extension manager and blocklist service during startup. Not likely to see a perf win as it is so small but would like to land it anyway.
Attachment #346020 - Flags: approval1.9.1?
Comment on attachment 346020 [details] [diff] [review] patch rev 2 a191=beltzner
Attachment #346020 - Flags: approval1.9.1? → approval1.9.1+
Attachment #346020 - Attachment is obsolete: true
Attachment #350491 - Flags: review+
Attachment #350491 - Flags: approval1.9.1+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: mozilla1.9.1 → mozilla1.9.1b3
Dave, plans to land this on 191?
Keywords: fixed1.9.1
Not much i can verify here. code cleanup work. Marking Verified per checkin.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: