Skip to content

Instantly share code, notes, and snippets.

@rhelmer
Last active November 6, 2017 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhelmer/b392e97d0b6ff81c06c205c760050c2b to your computer and use it in GitHub Desktop.
Save rhelmer/b392e97d0b6ff81c06c205c760050c2b to your computer and use it in GitHub Desktop.
testing a signed system add-on update
  1. Download and install the targeted version of Firefox
  2. Create a .xpi file for your add-on (this is just a zip file with install.rdf and bootstrap.js at the root) The filename must start with your add-on ID, for instance my-fix@mozilla.org-v1.xpi
  3. Create an XML file as described in http://firefox-source-docs.mozilla.org/toolkit/mozapps/extensions/addon-manager/SystemAddons.html#update-request
  4. Open about:config and modify the extensions.systemAddon.update.url pref to point to the above XML file
  5. Also in about:config, flip the extensions.logging.enabled and devtools.chrome.enabled prefs to true
  6. Open the Browser Console (Tools->Web Developer->Browser Console)
  7. At the prompt at the bottom of the Browser Console, force an update check by running Cu.import("resource://gre/modules/AddonManager.jsm"); AddonManagerPrivate.backgroundUpdateCheck()
  8. Open about:support and verify that system add-on appears and information is correct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment