What made Firefox more than a build target (docs/02 §4, 03, 04, 05 §10):
- Roots. getRoots (now browser/roots.ts) tries Firefox's GUIDs after
folderType and the Chromium ids, and never takes the Bookmarks Menu by
position — Firefox lists it first, and the old fallback took it for the
bar, so a Replace emptied the Menu and the toolbar and restored into the
wrong roots. The Menu is a fourth destination Replace also empties.
- The Menu in the file model: root "menu" (BM JSON, additive); HTML writes
its entries loose at the top level, as Firefox's own export does; on
Firefox loose top-level entries are routed into the Menu, elsewhere a menu
folder stays a folder under Other. New-folder mode is unchanged.
- Separators come back as { type: "separator", url: "data:" }. Recognised by
type (browser/live-tree.ts): left out of exports and backups, of every
count, of the dedupe index and the duplicate finder, never a search match;
in #edit they are aria-hidden lines that take no focus or command, with
posinset counting items only, Alt+↑/↓ stepping past one as one place, and
Sort A→Z sorting each run between them. The Replace confirmation says how
many will go and that nothing brings them back; files' separators are
counted (SEPARATORS_SKIPPED).
- Move index: Chromium counts a rightward same-folder move before removal,
Firefox after. The adapter sends each its own number and the reply's index
is checked — a mismatch re-reads the tree. Before this, every rightward drag
on Firefox landed one place too far and Alt+↓ moved two.
- Firefox refuses addresses over 65 536 characters, mid-write: dropped before
planning on Firefox (URL_TOO_LONG); nothing changes on Chromium.
- Strings true in every browser: the date note says "the browser", the About
link is "Store listing" and goes to the listing the copy came from (AMO by
gecko id, the Chrome Web Store by item id, else the README's install
section); the smart-bookmark note drops "dead link". Diagnostics names the
browser. All five locales (ja/zh-CN/ro best-effort).
bookmarks.ts was over the 300-line target, so its pure half moved to
live-tree.ts and root resolution to roots.ts before anything was added.
Tests run the root, Replace, export and #edit paths over a Firefox flavour of
the fake (docs/11 §4). Also fixes the last Qodana finding, a redundant escape
in the i18n interpolation regex.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>