-
Notifications
You must be signed in to change notification settings - Fork 5k
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 (cherry-pick for v12.0.0): add unlock checks for notification related controllers #26194
fix (cherry-pick for v12.0.0): add unlock checks for notification related controllers #26194
Conversation
) <!-- Please submit this PR as a draft initially. Do not mark it as "Ready for review" until the template has been completely filled out, and PR status checks have passed at least once. --> Ensures that we correctly call the preinstalled snap when the wallet is unlocked. Also prevents unlock confirmations being created due to snap calls when wallet is locked [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/26189?quickstart=1) [Ticket](https://consensyssoftware.atlassian.net/browse/NOTIFY-865) Fixes: #26064 1. Install the extension and enable notifications 2. Restart the browser, or reload the extension 3. Should see no auto opening of the wallet, and no unlock confirmations being made. <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> <!-- [screenshots/recordings] --> <!-- [screenshots/recordings] --> - [x] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## Version-v12.0.0 #26194 +/- ##
===================================================
+ Coverage 65.58% 65.59% +0.02%
===================================================
Files 1368 1368
Lines 54566 54603 +37
Branches 14186 14180 -6
===================================================
+ Hits 35783 35816 +33
- Misses 18783 18787 +4 ☔ View full report in Codecov by Sentry. |
Builds ready [309132e]
Page Load Metrics (120 ± 150 ms)
|
hi @Prithpal-Sooriya , i don't see these 2 lines in this cherry-pick PR, is it intended?
|
Hey @chloeYue, yes these are recent changes only available in v12.0.1+, not in v12.0.0 |
Description
This is a cherry pick for #26189 (2197d29)
Ensures that we correctly call the preinstalled snap when the wallet is unlocked. Also prevents unlock confirmations being created due to snap calls when wallet is locked
Related issues
Ticket
Fixes: #26064
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist