Skip to content

kooky.FindAllCookieStores on Firefox doesn't find the default cookie store #98

@kodawah

Description

@kodawah

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

  1. Run the cookie jar code
  2. Sometimes the right default profile will be loaded
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions