refactor(browser): simplify credential storage config (#593)

This commit is contained in:
Roger
2026-05-14 16:29:35 +08:00
committed by GitHub
parent 5d67d3c303
commit ecf8ba0585
22 changed files with 286 additions and 243 deletions
+3 -3
View File
@@ -35,9 +35,9 @@ const (
// Entry is the per-browser Windows metadata record.
//
// Key must match browser.BrowserConfig.Storage so retrievers and path
// resolvers share a single lookup identifier. CLSID/IID bytes are *not*
// stored here; see the package doc for why.
// Key must match browser.BrowserConfig.Key for every config that sets
// WindowsABE: true, so retrievers and path resolvers share a single lookup
// identifier. CLSID/IID bytes are *not* stored here; see the package doc for why.
type Entry struct {
Key string
ExeName string
+1 -1
View File
@@ -29,7 +29,7 @@ var ErrExecutableNotFound = errors.New("browser executable not found")
// is not running and the registry is missing the entry).
//
// browserKey must match an Entry in Table; keys align with
// browser.BrowserConfig.Storage.
// browser.BrowserConfig.Key (for configs that set WindowsABE: true).
func ExecutablePath(browserKey string) (string, error) {
entry, ok := Table[browserKey]
if !ok {