gecko-dev/toolkit/library
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
..
dummydll Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
gtest Bug 1482608 - Port the synced bookmarks merger to Rust. r=nika,mak,markh,tcsc 2019-03-25 04:50:14 +00:00
rust Bug 1482608 - Port the synced bookmarks merger to Rust. r=nika,mak,markh,tcsc 2019-03-25 04:50:14 +00:00
dependentlibs.py Bug 1516228 - Use llvm-objdump for mac in dependentlibs.py, too. r=mshal 2019-01-29 08:37:57 +09:00
gecko.natvis
libxul.so-gdb.py.in
Makefile.in Bug 1482299 - Replace libxul.mk with OBJDIR_PP_FILES. r=ted,firefox-build-system-reviewers 2018-08-15 14:04:00 +00:00
moz.build Bug 1512504 - Remove support for MSVC. r=froydnj 2019-02-14 21:45:27 +00:00
nsDllMain.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
StaticXULComponents.ld Bug 1471132 - Change how static xpcom components are linked. r=froydnj 2018-06-26 14:40:51 +09:00
symverscript.in
xulrunner.rc