refactor: add the Firefox base under internal/browser (#659)

Parsers move with git mv and hand records to a Collector; the old browser/firefox
runs them, and app now discovers Firefox. A profile without a usable key exports
its logins instead of panicking, as RFC-008 now lists.
This commit is contained in:
Roger authored and GitHub committed 2026-10-28 15:06:07 +08:00
1 parent bc59bd57bb
commit 2093045664
34 files changed
+1083 -417

No files matched your search

@@ -30,6 +30,17 @@ func TestPipelineGolden(t *testing.T) {
})
}
func TestPipelineGoldenFirefox(t *testing.T) {
home := t.TempDir()
def, ok := ibrowser.Lookup("firefox")
require.True(t, ok)
firefoxFixtureUserData(t, filepath.Join(home, filepath.FromSlash(def.Platform().UserDataDirs[0])))
assertExtractGoldens(t, "extract-firefox", func(t *testing.T, format string) string {
return pipelineGoldenRun(t, home, nil, format)
})
}
func pipelineGoldenRun(t *testing.T, home string, keys map[ibrowser.DirID]masterkey.Set, format string) string {
t.Helper()
out := t.TempDir()