diff --git a/services/crypto/Makefile b/services/crypto/Makefile index 54f0475d4a5..d83052475b0 100755 --- a/services/crypto/Makefile +++ b/services/crypto/Makefile @@ -162,6 +162,8 @@ else ldflags += -pthread -pipe -DMOZILLA_STRICT_API \ -Wl,-dead_strip \ -Wl,-exported_symbol \ + -Wl,-z,defs -Wl,-h,WeaveCrypto.so \ + -Wl,-rpath-link,$(sdkdir)/bin \ $(sdkdir)/lib/libxpcomglue_s.a \ $(libdirs) $(libs) else @@ -213,6 +215,10 @@ $(idl_typelib): $(idl) $(cpp_objects): $(cpp_sources) ifeq ($(cxx),cl) $(cxx) -Fo$@ -Fd$(@:.o=.pdb) $(cppflags) $(@:.o=.cpp) +endif +ifeq ($(os),Linux) + # don't need object files, but we need to satisfy make + touch $(cpp_objects) else $(cxx) -o $@ $(cppflags) $(@:.o=.cpp) endif @@ -226,7 +232,7 @@ $(so_target): $(idl_headers) $(cpp_objects) $(target:=.res) else ifeq ($(os),Linux) $(so_target): $(idl_headers) $(cpp_objects) - $(cxx) -o $@ $(cppflags) $(ldflags) $(cpp_sources) + $(cxx) $(cppflags) -o $@ $(cpp_sources) $(ldflags) else $(so_target): $(idl_headers) $(cpp_objects) $(cxx) -o $@ $(ldflags) $(cpp_objects) diff --git a/services/sync/locales/en-US/login.dtd b/services/sync/locales/en-US/login.dtd index 501b5bb33b6..ba5927dea3f 100644 --- a/services/sync/locales/en-US/login.dtd +++ b/services/sync/locales/en-US/login.dtd @@ -1,6 +1,6 @@ - + - + diff --git a/services/sync/locales/en-US/preferences.dtd b/services/sync/locales/en-US/preferences.dtd index 40f1e185dfc..12eab206001 100644 --- a/services/sync/locales/en-US/preferences.dtd +++ b/services/sync/locales/en-US/preferences.dtd @@ -20,11 +20,15 @@ - + + + + + diff --git a/services/sync/locales/en-US/share.dtd b/services/sync/locales/en-US/share.dtd index ac1ffdbeb5f..c14d4873cf0 100644 --- a/services/sync/locales/en-US/share.dtd +++ b/services/sync/locales/en-US/share.dtd @@ -1,6 +1,6 @@ - - + + diff --git a/services/sync/locales/en-US/sync.dtd b/services/sync/locales/en-US/sync.dtd index 8e4e52ee10a..e548bbd19a8 100644 --- a/services/sync/locales/en-US/sync.dtd +++ b/services/sync/locales/en-US/sync.dtd @@ -2,8 +2,7 @@ - - + diff --git a/services/sync/locales/en-US/wizard.dtd b/services/sync/locales/en-US/wizard.dtd index 592339da5d9..96ad1c5b41d 100644 --- a/services/sync/locales/en-US/wizard.dtd +++ b/services/sync/locales/en-US/wizard.dtd @@ -16,7 +16,7 @@ - + diff --git a/services/sync/locales/en-US/wizard.properties b/services/sync/locales/en-US/wizard.properties index 6f3abbf330c..da6ce0fe199 100644 --- a/services/sync/locales/en-US/wizard.properties +++ b/services/sync/locales/en-US/wizard.properties @@ -10,4 +10,4 @@ initStatusSyncFailed.label = Status: Transfer Failed invalidCredentials.alert = You must provide a valid Weave user name and password to continue. noPassphrase.alert = You must enter a passphrase -samePasswordAndPassphrase.alert = Your password and passphrase must be different +samePasswordAndPassphrase.alert = Your password and passphrase must be different \ No newline at end of file diff --git a/services/sync/modules/constants.js b/services/sync/modules/constants.js index 9e447fe0050..107099dc9eb 100644 --- a/services/sync/modules/constants.js +++ b/services/sync/modules/constants.js @@ -42,7 +42,7 @@ const EXPORTED_SYMBOLS = ['WEAVE_VERSION', 'STORAGE_FORMAT_VERSION', 'PERMS_FILE', 'PERMS_PASSFILE', 'PERMS_DIRECTORY', 'ONE_BYTE', 'ONE_KILOBYTE', 'ONE_MEGABYTE']; -const WEAVE_VERSION = "0.1.30"; +const WEAVE_VERSION = "0.1.31"; const STORAGE_FORMAT_VERSION = 2; const ENGINE_STORAGE_FORMAT_VERSION = 2; diff --git a/services/sync/modules/engines.js b/services/sync/modules/engines.js index a8895ad628d..6d5381cec16 100644 --- a/services/sync/modules/engines.js +++ b/services/sync/modules/engines.js @@ -413,7 +413,7 @@ Engine.prototype = { this._log.error("Could not upload files to server"); // eep? } else { - this._remote.deltas.put(self.cb, this._serializeCommands(server.deltas)); + this._remote.deltas.put(self.cb, server.deltas); yield; let c = 0; diff --git a/services/sync/modules/engines/tabs.js b/services/sync/modules/engines/tabs.js index bb53a191793..9ebae8da490 100644 --- a/services/sync/modules/engines/tabs.js +++ b/services/sync/modules/engines/tabs.js @@ -207,7 +207,7 @@ TabStore.prototype = { _init: function TabStore__init() { this._restoreVirtualTabs(); - this.__proto__.__proto__._init(); + this.__proto__.__proto__._init.call(this); }, /** diff --git a/services/sync/modules/remote.js b/services/sync/modules/remote.js index 309feb2baf0..0caf0d58e99 100644 --- a/services/sync/modules/remote.js +++ b/services/sync/modules/remote.js @@ -260,13 +260,13 @@ JsonFilter.prototype = { beforePUT: function JsonFilter_beforePUT(data) { let self = yield; - this._log.debug("Encoding data as JSON") + this._log.debug("Encoding data as JSON"); self.done(this._json.encode(data)); }, afterGET: function JsonFilter_afterGET(data) { let self = yield; - this._log.debug("Decoding JSON data") + this._log.debug("Decoding JSON data"); self.done(this._json.decode(data)); } }; @@ -281,7 +281,7 @@ CryptoFilter.prototype = { beforePUT: function CryptoFilter_beforePUT(data) { let self = yield; - this._log.debug("Encrypting data") + this._log.debug("Encrypting data"); Crypto.PBEencrypt.async(Crypto, self.cb, data, ID.get(this._remote.cryptoId)); let ret = yield; self.done(ret); @@ -289,7 +289,7 @@ CryptoFilter.prototype = { afterGET: function CryptoFilter_afterGET(data) { let self = yield; - this._log.debug("Decrypting data") + this._log.debug("Decrypting data"); if (!this._remote.status.data) throw "Remote status must be initialized before crypto filter can be used" let alg = this._remote.status.data[this._algProp]; @@ -306,7 +306,7 @@ Status.prototype = { __proto__: new Resource(), _init: function Status__init(remoteStore) { this._remote = remoteStore; - this.__proto__.__proto__._init(this._remote.serverPrefix + "status.json"); + this.__proto__.__proto__._init.call(this, this._remote.serverPrefix + "status.json"); this.pushFilter(new JsonFilter()); } }; @@ -318,7 +318,7 @@ Keychain.prototype = { __proto__: new Resource(), _init: function Keychain__init(remoteStore) { this._remote = remoteStore; - this.__proto__.__proto__._init(this._remote.serverPrefix + "keys.json"); + this.__proto__.__proto__._init.call(this, this._remote.serverPrefix + "keys.json"); this.pushFilter(new JsonFilter()); }, _getKey: function Keychain__getKey(identity) { @@ -347,7 +347,7 @@ Snapshot.prototype = { __proto__: new Resource(), _init: function Snapshot__init(remoteStore) { this._remote = remoteStore; - this.__proto__.__proto__._init(this._remote.serverPrefix + "snapshot.json"); + this.__proto__.__proto__._init.call(this, this._remote.serverPrefix + "snapshot.json"); this.pushFilter(new JsonFilter()); this.pushFilter(new CryptoFilter(remoteStore, "snapshotEncryption")); } @@ -360,7 +360,7 @@ Deltas.prototype = { __proto__: new Resource(), _init: function Deltas__init(remoteStore) { this._remote = remoteStore; - this.__proto__.__proto__._init(this._remote.serverPrefix + "deltas.json"); + this.__proto__.__proto__._init.call(this, this._remote.serverPrefix + "deltas.json"); this.pushFilter(new JsonFilter()); this.pushFilter(new CryptoFilter(remoteStore, "deltasEncryption")); } diff --git a/services/sync/modules/service.js b/services/sync/modules/service.js index dfd679e2d8a..d8d68bb26fb 100644 --- a/services/sync/modules/service.js +++ b/services/sync/modules/service.js @@ -157,7 +157,7 @@ WeaveSvc.prototype = { get passphrase() { return ID.get('WeaveCryptoID').password; }, set passphrase(value) { ID.get('WeaveCryptoID').password = value; }, - get userPath() { return ID.get('WeaveID').userHash; }, + get userPath() { return ID.get('WeaveID').username; }, get currentUser() { if (this._loggedIn) @@ -178,7 +178,7 @@ WeaveSvc.prototype = { onWindowOpened: function Weave__onWindowOpened() { if (!this._startupFinished) { if (Utils.prefs.getBoolPref("autoconnect") && - this.username && this.username != 'nobody@mozilla.com') { + this.username && this.username != 'nobody') { // Login, then sync. let self = this; this.login(function() { self.sync(); }); diff --git a/services/sync/services-sync.js b/services/sync/services-sync.js index 561ee2937af..5769981402a 100644 --- a/services/sync/services-sync.js +++ b/services/sync/services-sync.js @@ -1,5 +1,5 @@ -pref("extensions.weave.serverURL", "https://services.mozilla.com/"); -pref("extensions.weave.username", "nobody@mozilla.com"); +pref("extensions.weave.serverURL", "https://sm-labs01.mozilla.org:81/"); +pref("extensions.weave.username", "nobody"); pref("extensions.weave.encryption", "aes-256-cbc"); @@ -7,17 +7,18 @@ pref("extensions.weave.lastversion", "firstrun"); pref("extensions.weave.lastsync", "0"); pref("extensions.weave.ui.syncnow", true); -pref("extensions.weave.ui.sharebookmarks", false); +pref("extensions.weave.ui.sharebookmarks", true); pref("extensions.weave.rememberpassword", true); pref("extensions.weave.autoconnect", true); pref("extensions.weave.enabled", true); pref("extensions.weave.schedule", 1); + pref("extensions.weave.engine.bookmarks", true); pref("extensions.weave.engine.history", true); -pref("extensions.weave.engine.cookies", false ); -pref("extensions.weave.engine.passwords", false ); -pref("extensions.weave.engine.forms", false ); -pref("extensions.weave.engine.tabs", false); +pref("extensions.weave.engine.cookies", true ); +pref("extensions.weave.engine.passwords", true ); +pref("extensions.weave.engine.forms", true ); +pref("extensions.weave.engine.tabs", true); pref("extensions.weave.log.appender.console", "Warn"); pref("extensions.weave.log.appender.dump", "Error");