feat: add Safari cookie extraction from BinaryCookies format (#566)

* feat: add Safari cookie extraction from BinaryCookies format
* fix: use expiry presence instead of current time for HasExpire
This commit is contained in:
Roger
2026-04-12 01:16:59 +08:00
committed by GitHub
parent 509cdc2468
commit 7bf1759dd9
7 changed files with 284 additions and 4 deletions
+4
View File
@@ -108,6 +108,8 @@ func (b *Browser) extractCategory(data *types.BrowserData, cat types.Category, p
switch cat {
case types.History:
data.Histories, err = extractHistories(path)
case types.Cookie:
data.Cookies, err = extractCookies(path)
default:
return
}
@@ -123,6 +125,8 @@ func (b *Browser) countCategory(cat types.Category, path string) int {
switch cat {
case types.History:
count, err = countHistories(path)
case types.Cookie:
count, err = countCookies(path)
default:
// Unsupported categories silently return 0.
}