Fix handling of permissions of removed accounts #8803
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Imported accounts can be removed, but the permissions controller is not informed when this happens. Permissions are now removed as part of the account removal process.
Additionally, the
getPermittedIdentitiesForCurrentTab
selector now filters out any non-existent accounts, in case a render occurs in the middle of an account removal.This was resulting in a render crash upon opening the popup on a site that was connected to the removed account.