Don't include changes to special places Library "exclude from backup" items.

This commit is contained in:
Edward Lee 2009-08-25 16:15:05 -07:00
Родитель e355170c90
Коммит fbdd3f2a85
2 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -395,6 +395,9 @@ SyncEngine.prototype = {
// case when syncing for the first time two machines that already have the
// same bookmarks. In this case we change the IDs to match.
_reconcile: function SyncEngine__reconcile(item) {
if (this._log.level <= Log4Moz.Level.Trace)
this._log.trace("Incoming: " + item);
// Step 1: Check for conflicts
// If same as local record, do not upload
this._log.trace("Reconcile step 1");
@ -435,8 +438,6 @@ SyncEngine.prototype = {
// Apply incoming records
_applyIncoming: function SyncEngine__applyIncoming(item) {
if (this._log.level <= Log4Moz.Level.Trace)
this._log.trace("Incoming: " + item);
try {
this._tracker.ignoreAll = true;
this._store.applyIncoming(item);

Просмотреть файл

@ -865,6 +865,12 @@ BookmarksTracker.prototype = {
if (this._ignore(itemId))
return;
// Make sure to remove items that now have the exclude annotation
if (property == "places/excludeFromBackup") {
this.removeChangedID(GUIDForId(itemId));
return;
}
// ignore annotations except for the ones that we sync
let annos = ["bookmarkProperties/description",
"bookmarkProperties/loadInSidebar", "bookmarks/staticTitle",