Confirmed users
1,041
edits
(Extension Manager:Extension Dependencies) |
m (→Overview) |
||
Line 13: | Line 13: | ||
* For brevity this document uses the term item for all items that will support em:requires (e.g. extensions and themes). | * For brevity this document uses the term item for all items that will support em:requires (e.g. extensions and themes). | ||
* The term dependency refers to an item that another item requires to function properly. The information for a dependency is specified in an item's install manifest <tt>em:requires</tt> section. | * The term dependency refers to an item that another item requires to function properly. The information for a dependency is specified in an item's install manifest <tt>em:requires</tt> section. | ||
* A dependency is satisfied when an additional item is installed with the same id and a version number that is compatible when version checked (e.g. <tt>nsIVersionChecker</tt>) based on the minVersion and maxVersion as specified in the em:requires section of an item's install manifest. | * A dependency is satisfied when an additional item is installed with the same id and a version number that is compatible when version checked (e.g. <tt>nsIVersionChecker</tt>) based on the <tt>minVersion</tt> and <tt>maxVersion</tt> as specified in the <tt>em:requires</tt> section of an item's install manifest. | ||
* When an item is installed, upgraded, or uninstalled using a method other than a manager (e.g. Extension / Theme Manager) items that do not have their dependencies satisfied will be disabled and their description field will state why the item is disabled. | * When an item is installed, upgraded, or uninstalled using a method other than a manager (e.g. Extension / Theme Manager) items that do not have their dependencies satisfied will be disabled and their description field will state why the item is disabled. | ||
* When an item is disabled by not having its dependencies satisfied the item should be disabled by a new property (e.g. autoDisabled) rather than the disabled property. This will make it possible to automatically enable an item that in the future has its dependencies satisfied without enabling it when it was manually disabled. See [https://bugzilla.mozilla.org/show_bug.cgi?id=264750 bug 264750] for an example and this new property could also be used in that scenario. | * When an item is disabled by not having its dependencies satisfied the item should be disabled by a new property (e.g. autoDisabled) rather than the disabled property. This will make it possible to automatically enable an item that in the future has its dependencies satisfied without enabling it when it was manually disabled. See [https://bugzilla.mozilla.org/show_bug.cgi?id=264750 bug 264750] for an example and this new property could also be used in that scenario. |