-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: getAddresses popup appearing randomly on core.app #67
Conversation
@@ -3,14 +3,23 @@ import { isSyncDomain } from '@src/background/services/network/utils/getSyncDoma | |||
import { isActiveTab } from './isActiveTab'; | |||
import { runtime } from 'webextension-polyfill'; | |||
|
|||
type SkipApprovalOptions = { | |||
allowInactiveTabs?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went with dev having to explicitly say allowInactiveTabs
rather than making the tabId
optional. It feels less error-prone this way.
await canSkipApproval(request.site.domain, request.site.tabId, { | ||
domainWhitelist: EXPOSED_DOMAINS, | ||
allowInactiveTabs: true, | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we put all of the parameters in to an object then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can simplify in a follow up PR (so I don't need to collect approvals after updating again 😄)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't been able to reproduce the approval address screen appearing randomly using this branch like I have on blue build. lgtm 👍
Fix for
Expose addresses?
popup showing up randomly on core.app.It seems core.app is polling for accounts and reacting to accounts being created/renamed in the extension. If core.app is not the active tab, we show up the approval window.