Andy McKay and wbamberg add in managed example (#287)
* add in managed example

* Updated favourite-colour README to point to the storage.managed documentation
Latest commit 17a58bc Oct 25, 2017

Favourite Colour

Shows and stores your favourite colour, in storage.sync in the about:addons page for the add-on.


  • storing data with storage.sync

  • reading data from storage.managed,

  • creating an options page and opening it with runtime.openOptionsPage().

To have Firefox read data from storage.managed, create a file with the following contents:

  "name":  "",
  "description": "ignored",
  "type": "storage",
  "data": {
    "colour": "management thinks it should be blue!"

Name the file "" and follow the instructions in the storage.managed documentation to make the file discoverable by the extension (on OS X and Linux this means copying it to a specific location, while on Windows it means creating a specific registry key pointing to the file's location).