mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-10-13 03:37:12 +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:
1 parent
f8bd391923
commit
00be145044
4 files changed
+16
-25
No files matched your search
@@ -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