mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-06-04 19:48:01 +02:00
refactor(browser): split installation and profile abstractions (#603)
* refactor(browser): split installation and profile abstractions A Chromium installation shares one master key across its profiles, but modeling each profile as its own Browser re-derived the key per profile. Browser now represents one installation holding its profiles and derives the key once; new types.Profile/ExtractResult/CountResult carry per-profile results. * style: gofumpt safari_test.go * test(chromium): rename shadowed loop var to path
This commit is contained in:
@@ -155,9 +155,9 @@ func resolveKeychainPassword(flagPassword string) string {
|
||||
return password
|
||||
}
|
||||
|
||||
// newPlatformInjector lazily wires retrievers (and the macOS keychain password) into each Browser;
|
||||
// newCredentialInjector lazily wires retrievers (and the macOS keychain password) into each Browser;
|
||||
// `-b firefox` never triggers a keychain prompt because lazy resolution skips browsers that need neither.
|
||||
func newPlatformInjector(opts PickOptions) func(Browser) {
|
||||
func newCredentialInjector(opts PickOptions) browserInjector {
|
||||
var (
|
||||
password string
|
||||
retrievers keyretriever.Retrievers
|
||||
|
||||
Reference in New Issue
Block a user