Skip to content

fix(ext): cross-browser bookmark root lookup for Firefox (#66)#67

Merged
paperhurts merged 1 commit into
mainfrom
fix/firefox-bookmark-roots
Jun 28, 2026
Merged

fix(ext): cross-browser bookmark root lookup for Firefox (#66)#67
paperhurts merged 1 commit into
mainfrom
fix/firefox-bookmark-roots

Conversation

@paperhurts

Copy link
Copy Markdown
Owner

Closes #66. Firefox native-tree sync was dead — getBarOtherIds hardcoded Chrome's 1/2 root IDs; Firefox uses toolbar_____/unfiled_____. Extracted findRootIds() matching both (toolbar*/unfiled* via startsWith). +3 tests; 122 shared tests pass.

🤖 Generated with Claude Code

#66)

getBarOtherIds() hardcoded Chrome's bookmark root IDs '1'/'2', so Firefox
(which uses 'toolbar_____'/'unfiled_____') failed every reconcile/poll with
'could not find Bookmarks Bar (id=1)...' — all native-tree sync was dead in
Firefox.

Extract findRootIds() into lib/bookmark-roots.ts, matching bar = '1' or
toolbar*, other = '2' or unfiled* (startsWith, robust to Firefox's underscore
count). Error now reports the ids actually seen. +3 tests (Chrome + Firefox
trees, missing-root throws). 119 -> 122 shared tests.

Closes #66

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@paperhurts paperhurts merged commit b7dc619 into main Jun 28, 2026
1 check passed
@paperhurts paperhurts deleted the fix/firefox-bookmark-roots branch June 28, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Firefox: native-tree sync broken — getBarOtherIds hardcodes Chrome root IDs (1/2)

1 participant