Bug 1284564 - correct update behavior section of system add-on spec r?Osmose
MozReview-Commit-ID: JtncY5gvcN7
--- a/toolkit/mozapps/extensions/docs/SystemAddons.rst
+++ b/toolkit/mozapps/extensions/docs/SystemAddons.rst
@@ -82,21 +82,21 @@ AUS should respond with an XML document
``version``
Version number of the add-on
Update Behavior
---------------
After receiving the update response, Firefox modifies the **update** add-ons
according to the following algorithm:
-1. If the ``<addons>`` tag is missing in the response,
+1. If the ``<addons>`` tag is empty (``<addons></addons>``) in the response,
**disable all system add-ons**, including both the **update** and **default**
sets.
-2. If no add-ons were specified in the response (i.e. the ``<addons>`` tag has
- no children but is present), do nothing and finish.
+2. If no add-ons were specified in the response (i.e. the ``<addons>`` tag
+ is not present), do nothing and finish.
3. If the **update** add-on set is equal to the set of add-ons specified in the
update response, do nothing and finish.
4. If the set of **default** add-ons is equal to the set of add-ons specified in
the update response, remove all the **update** add-ons and finish.
5. Download each add-on specified in the update response and store them in the
"downloaded add-on set". A failed download **must** abort the entire system
add-on update.
6. Validate the downloaded add-ons. The following **must** be true for all