Firefox/Projects/Action based on update xml after app update

< Firefox‎ | Projects
Revision as of 10:58, 31 January 2010 by Robert Strong (talk | contribs) (Created page with '== Summary == After app update perform action based upon the update metadata. == Current Status == App update work almost complete. Front end work in progress. AUS work will b…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Summary

After app update perform action based upon the update metadata.

Current Status

App update work almost complete. Front end work in progress. AUS work will be started soon.

Next Steps

  • Request review on the app update patches in bug 530872.
  • ddahl to finish patches on the front end work bug 538331.

Related Bugs

bug 530872 - app.update.url params / update.xml cleanup and addition of a custom string property for apps bug 538331 - On update perform action based upon the update metadata

Team

  • App Update work: rs
  • Firefox front end work: ddahl
  • AUS work: nthomas

Designs

The update xml will provide a custom attribute named extra1. The value if extra1 will be set in the app.update.extra1 preference which can then be used by Firefox to determine that an update has just been applied and perform the action specified in the value. After the value of this preference is read Firefox should delete the preference to prevent performing the action again on the next launch.

  1. undefined = extra1 was not specified in the update snippet. I think this should just be the current action.
  2. silent = do nothing
  3. openURL = open a url. This should be the current action using the pref containing the url
  4. openURL http://etc. = open the url specified after the space.
  5. showNotification = show the notification bar. The url should be the url contained in the current action pref.
  6. showNotification http://etc. = show the notification bar with the url specified after the space.
  7. showAlert = show an alert. The url should be the url contained in the current action pref.
  8. showAlert http://etc. = show an alert with the url specified after the space.

Goals/Use Cases

  • Provide the ability to perform actions after app update based on an attribute in the update xml.

Non Goals

  • TBD