Closed Bug 401093 Opened 18 years ago Closed 18 years ago

Do not force restart when installing unknown add-on types

Categories

(Toolkit :: Add-ons Manager, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta2

People

(Reporter: jwkbugzilla, Assigned: jwkbugzilla)

References

Details

Attachments

(1 file)

ExtensionManager.installRequiresRestart() currently always returns true - unless the add-on is a theme and some special conditions are met. Unfortunately, returning true for unknown (application-defined) add-on types is a bad assumption, the restart is probably now required. I see two options: 1. Always return false for unknown add-on types and let the application itself deal with restarts. 2. Introduce a new (optional) field in install.rdf to allow overriding the restart preference. The first option is much simpler so I would go for it unless there is a good reason to implement a different solution.
Attached patch Proposed patchSplinter Review
Assignee: nobody → trev.moz
Status: NEW → ASSIGNED
Attachment #286153 - Flags: review?
Attachment #286153 - Flags: review? → review?(robert.bugzilla)
Comment on attachment 286153 [details] [diff] [review] Proposed patch Good call. Thanks Wladimir
Attachment #286153 - Flags: review?(robert.bugzilla) → review+
Attachment #286153 - Flags: approval1.9?
Attachment #286153 - Flags: approval1.9? → approval1.9+
Keywords: checkin-needed
Checking in toolkit/mozapps/extensions/src/nsExtensionManager.js.in; /cvsroot/mozilla/toolkit/mozapps/extensions/src/nsExtensionManager.js.in,v <-- nsExtensionManager.js.in new revision: 1.259; previous revision: 1.258 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3 M10
Comment on attachment 286153 [details] [diff] [review] Proposed patch >+ return ((type & nsIUpdateItem.TYPE_ANY) > 0); This caused test oranges because of the missing "Ci." before "nsIUpdateItem.TYPE_ANY" (should have been Ci.nsIUpdateItem.TYPE_ANY).
Reed - thanks for fixing this. My tree didn't have bug 395311 patch, it removed the global nsIUpdateItem constant.
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: