Bug 602627 - Document sigma add-on formats and flow
authorEdward Lee <edilee@mozilla.com>
Tue, 12 Oct 2010 18:24:38 -0700
changeset 15 3adee3b78d64938c9f6d4573511e3786c9df5467
parent 14 9b95e7f5afcff6487d6a2d2b5d541caaeb324ec6
child 16 3560b6c89bfb5e13eeb0f3bd9e6489a85c9ab304
push id16
push useredward.lee@engineering.uiuc.edu
push dateWed, 13 Oct 2010 01:24:56 +0000
bugs602627
Bug 602627 - Document sigma add-on formats and flow Point to the wiki page instead of documenting just the old manifest in a comment block.
bootstrap.js
--- a/bootstrap.js
+++ b/bootstrap.js
@@ -39,33 +39,20 @@ const Ci = Components.interfaces;
 const Cr = Components.results;
 const Cu = Components.utils;
 Cu.import("resource://gre/modules/AddonManager.jsm");
 Cu.import("resource://gre/modules/ctypes.jsm");
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 
 /**
- * Sample json manifest:
- *
- * {
- *   "infoUrl": "https://site/info",
+ * Visit the following wiki page to view and update documentation about the
+ * manifest structure, local state, add-on behavior, etc.
  *
- *   "install": [
- *     {
- *       "id": "addon1",
- *       "url": "https://site/addon1.xpi",
- *       "version": 1
- *     }
- *   ],
- *
- *   "uninstall": [
- *     "addon2"
- *   ]
- * }
+ * https://wiki.mozilla.org/Labs/Sigma
  */
 
 const ENCODED_PUBKEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv6S5kOB3pq3yvmXgM6ntiqjDq4YlLgiX8gQfQ/eRL3G0ubOpJE99WkErlpspQwqtZk2X+zZs2wrAqzqx/VHp+XCjlJsxfFg6lTvsXAmu1gE7FXWFaQXUgx6UURh+VuoATNHL0QOKDZxdzPRYxX+XoXMOZU/rGpRjrEri7PMvKPADTiBTNxK7BtuU/pFuNms1hb8MQXsGGV0NGtSzA0SGYHk55nGT57HNNzkseoJ9fIx1xrqTCNe5l1+OmuJ/r0BB8V/HyFkGvY0qkKp1PSS9I85BXfLuPVGXePYtdSIEYxKq2+cWmU8yOS0QkDSug9qBlBorrbs5UWDu0JTBf571bwIDAQAB";
 const MAX_MANIFEST_LIFETIME = 30 * 24 * 60 * 60 * 1000; // 30 days
 const MIN_CHECK_INTERVAL = 60 * 60 * 1000; // 1 hour
 const PREF_BRANCH = "extensions.sigma.";
 const SIGMA_FILE = "https://sigma.mozillalabs.com/sigma.";
 const UPDATE_FREQUENCY = 24 * 60 * 60 * 1000; // 1 day