Граф коммитов

4 Коммитов

Автор SHA1 Сообщение Дата
Lina Cambridge 3c690350be Bug 1551062 - Abort merging when the synced bookmarks mirror is finalized. r=tcsc
This commit adds an `AbortController` to the bookmark merger that
aborts fetching and merging when the mirror is finalized on shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D31000

--HG--
extra : moz-landing-system : lando
2019-05-14 03:40:30 +00:00
Lina Cambridge ea48c5e7eb Bug 1546035 - Remove local and remote livemarks when syncing. r=mak,tcsc
This commit exports livemarks before syncing for the first time, to
avoid losing livemarks that Sync may have resurrected. As of v0.2.4,
Dogear treats livemarks as non-syncable, and deletes them on both
sides.

This also bumps the mirror schema version, to trigger a first sync.

Differential Revision: https://phabricator.services.mozilla.com/D28543

--HG--
extra : moz-landing-system : lando
2019-05-02 08:03:36 +00:00
Lina Cambridge 55eaa1eb23 Bug 1540894 - Vendor Dogear v0.2.3. r=tcsc
Differential Revision: https://phabricator.services.mozilla.com/D26274

--HG--
extra : moz-landing-system : lando
2019-04-05 20:44:18 +00:00
Lina Cambridge 99b7c7c7de Bug 1482608 - Port the synced bookmarks merger to Rust. r=nika,mak,markh,tcsc
This commit introduces a Rust XPCOM component,
`mozISyncedBookmarksMerger`, that wraps the Dogear crate for
merging and applying synced bookmarks.

How this works: `SyncedBookmarksMirror.jsm` manages opening
the connection, initializing the schema, and writing incoming
items into the mirror database. The new `mozISyncedBookmarksMerger`
holds a handle to the same connection. When JS code calls
`mozISyncedBookmarksMerger::apply`, the merger builds local and
remote trees, produces a merged tree, applies the tree back to Places,
and stages outgoing items for upload in a temp table, all on the
storage thread. It then calls back in to JS, which inflates Sync
records for outgoing items, notifies Places observers, and cleans up.

Since Dogear has a more robust merging algorithm that attempts to fix
up invalid trees, `test_bookmark_corruption.js` intentionally fails.
This is fixed in the next commit, which changes the merger to handle
invalid structure.

Differential Revision: https://phabricator.services.mozilla.com/D20076

--HG--
extra : moz-landing-system : lando
2019-03-25 04:50:14 +00:00