Wrote some scaffolding for the Fennec-weave UI -- doesn't do anything yet.
authorjonathandicarlo@localhost
Sun, 21 Dec 2008 14:08:33 -0800
changeset 45126 6c8ac5d6d05450a050300c278aa171d087bb0b1a
parent 45125 31b2783ade190be7718f03bb72057b78a7dd1b8b
child 45127 8906eacd7374ede19b53ecc957950ce4e1803bc4
push idunknown
push userunknown
push dateunknown
Wrote some scaffolding for the Fennec-weave UI -- doesn't do anything yet.
services/sync/modules/service.js
--- a/services/sync/modules/service.js
+++ b/services/sync/modules/service.js
@@ -507,16 +507,17 @@ WeaveSvc.prototype = {
       // make sure we have a matching privkey
       let privkey = yield PrivKeys.get(self.cb, pubkey.privateKeyUri);
       if (privkey) {
         needKeys = false;
         ret = true;
       }
     }
 
+    // TODO: do not try the following if we're on Fennec:
     if (needKeys) {
       let pass = yield ID.get('WeaveCryptoID').getPassword(self.cb);
       if (pass) {
         let keys = PubKeys.createKeypair(pass, PubKeys.defaultKeyUri,
                                          PrivKeys.defaultKeyUri);
         try {
           yield keys.pubkey.put(self.cb);
           yield keys.privkey.put(self.cb);