chore: Remove phishing-controller dependency#3852
Merged
FrederikBolding merged 2 commits intomainfrom Feb 12, 2026
Merged
Conversation
Mrtenz
reviewed
Feb 12, 2026
| rootMessenger.registerActionHandler( | ||
| 'PhishingController:testOrigin', | ||
| () => ({ result: true, type: PhishingDetectorResultType.All }), | ||
| () => ({ result: true, type: 'all' as const }), |
Member
Author
There was a problem hiding this comment.
Probably not actually, will fix.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3852 +/- ##
==========================================
- Coverage 98.59% 98.59% -0.01%
==========================================
Files 429 429
Lines 12417 12416 -1
Branches 1928 1928
==========================================
- Hits 12242 12241 -1
Misses 175 175 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Mrtenz
approved these changes
Feb 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The recent
phishing-controllerversion includestransaction-controlleras a dependency. To simplify that Snaps dependency tree, we can use a copied type.Note
Low Risk
Primarily dependency/type cleanup; runtime behavior is unchanged aside from relying on a looser local type for the phishing action response.
Overview
Removes the
@metamask/phishing-controllerdependency from Snaps packages (snaps-controllers,snaps-jest,snaps-simulation) and updates the lockfile accordingly to simplify the dependency tree.Replaces imports of
phishing-controllertypes with a locally definedPhishingController:testOriginaction type inSnapInterfaceController, and updates tests/mocks to return the expected phishing resulttypeas the string'all'instead ofPhishingDetectorResultType.All.Written by Cursor Bugbot for commit 2107037. This will update automatically on new commits. Configure here.