-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
Description
Checklist
- I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
- This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
I am trying to use the example that loads a cookie jar, but on Firefox the call sometimes return no cookie stores. It's very random whether the cookiestore will be detected or not, the same happens when multiple profiles are present (in the example below, stores is often 1 item long)
How to reproduce
- Run the cookie jar code
- Sometimes the right default profile will be loaded
- Sometimes it won't
Example code
ctx := context.TODO()
stores := kooky.FindAllCookieStores(ctx)
var s kooky.CookieStore
for _, store := range stores {
log.Println(store.Browser(), store.IsDefaultProfile())
if store.Browser() != `firefox` || !store.IsDefaultProfile() {
continue
}
s = store
break
}
if s == nil {
log.Fatatln("could not find firefox store")
}Kooky version
v0.2.4
Go compiler version
go version go1.24.5 darwin/arm64
Browser
Firefox 141
Operating system and version
macOS 15.5