mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
refactor(browser): publicize key-injection capability api (#597)
Promote keyRetrieversSetter to public KeyManager and lift keychainPasswordSetter from browser_darwin.go into browser.go as KeychainPasswordReceiver. Engines already implement these methods; only type-assertion sites switch to the public interface names.
This commit is contained in:
@@ -75,8 +75,8 @@ func platformBrowsers() []types.BrowserConfig {
|
||||
func newPlatformInjector(_ PickOptions) func(Browser) {
|
||||
retrievers := keyretriever.DefaultRetrievers()
|
||||
return func(b Browser) {
|
||||
if s, ok := b.(keyRetrieversSetter); ok {
|
||||
s.SetKeyRetrievers(retrievers)
|
||||
if km, ok := b.(KeyManager); ok {
|
||||
km.SetKeyRetrievers(retrievers)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user