gecko-dev/services/sync
Lina Cambridge be55ac8482 Bug 1615931 - Handle invalid bookmark URLs in new bookmark sync. r=markh,LougeniaBailey
This commit changes `Store::local_row_to_item` to validate local URLs,
and flags items with malformed URLs as invalid. These items are either
replaced with valid remote copies, if they exist, or deleted if not.
Additionally, `BaseBookmarksStore#_calculateIndex` no longer throws
when determining the sort index for an item with an invalid URL.

As an aside, we use the `url` crate to parse URLs. This is the same
crate as used by `MozURL`, which, in turn, backs the JS `URL`
constructor...so URLs should be validated the same way in Rust and JS.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 02:11:13 +00:00
..
locales
modules Bug 1615931 - Handle invalid bookmark URLs in new bookmark sync. r=markh,LougeniaBailey 2020-03-02 02:11:13 +00:00
modules-testing Bug 1582317 - record the sync storage node type in the sync telemetry ping. r=tcsc 2019-12-14 04:26:05 +00:00
tests Bug 1615931 - Handle invalid bookmark URLs in new bookmark sync. r=markh,LougeniaBailey 2020-03-02 02:11:13 +00:00
tps/extensions/tps
SyncComponents.manifest
Weave.jsm
components.conf
moz.build