-
Notifications
You must be signed in to change notification settings - Fork 5.5k
fix(snaps): Catch handleSnapRequest error in SnapInterfaceContext
#34857
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
Merged
Conversation
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
Contributor
|
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. |
Mrtenz
reviewed
Aug 5, 2025
Collaborator
✨ Files requiring CODEOWNER review ✨👨🔧 @MetaMask/core-platform (1 files, +8 -1)
|
Co-authored-by: Maarten Zuidhoorn <[email protected]>
Member
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.
We should port this change to mobile too
FrederikBolding
approved these changes
Aug 5, 2025
Mrtenz
approved these changes
Aug 5, 2025
Collaborator
Builds ready [05f0470]
UI Startup Metrics (1137 ± 73 ms)
Benchmark value 4 exceeds gate value 1 for chrome browserify home mean initialActions Benchmark value 232 exceeds gate value 18 for chrome browserify home p95 backgroundConnect Benchmark value 14 exceeds gate value 1.2 for chrome browserify home p95 initialActions Benchmark value 2248 exceeds gate value 2192 for chrome webpack home mean uiStartup Benchmark value 9 exceeds gate value 7 for chrome webpack home mean initialActions Benchmark value 2632 exceeds gate value 2454 for chrome webpack home p95 uiStartup Benchmark value 83 exceeds gate value 57 for chrome webpack home p95 domInteractive Benchmark value 395 exceeds gate value 370 for chrome webpack home p95 firstReactRender Benchmark value 11 exceeds gate value 7 for chrome webpack home p95 initialActions Benchmark value 263 exceeds gate value 65 for chrome webpack home p95 setupStore Benchmark value 26 exceeds gate value 25 for firefox browserify home mean backgroundConnect Benchmark value 26 exceeds gate value 25 for firefox browserify home mean firstReactRender Benchmark value 4 exceeds gate value 1 for firefox browserify home mean initialActions Benchmark value 221 exceeds gate value 195 for firefox browserify home p95 domInteractive Benchmark value 19 exceeds gate value 2 for firefox browserify home p95 initialActions Benchmark value 34 exceeds gate value 26 for firefox webpack home mean backgroundConnect Benchmark value 52 exceeds gate value 38 for firefox webpack home mean firstReactRender Benchmark value 6 exceeds gate value 1 for firefox webpack home mean initialActions Benchmark value 16 exceeds gate value 13 for firefox webpack home mean setupStore Benchmark value 230 exceeds gate value 156 for firefox webpack home p95 domInteractive Benchmark value 92 exceeds gate value 49 for firefox webpack home p95 backgroundConnect Benchmark value 60 exceeds gate value 50 for firefox webpack home p95 firstReactRender Benchmark value 17 exceeds gate value 2 for firefox webpack home p95 initialActions Benchmark value 49 exceeds gate value 28 for firefox webpack home p95 setupStore Sum of mean exceeds: 301ms | Sum of p95 exceeds: 863.8ms Sum of all benchmark exceeds: 1164.8ms Bundle size diffs [🚀 Bundle size reduced!]
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
release-13.2.0
Issue or pull request that will be included in release 13.2.0
team-snaps-platform-deprecated
DEPRECATED: please use "team-core-platform" instead (or "team-new-networks" for Solana snap issues)
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.
Description
Handle errors thrown by
handleSnapRequestinSnapInterfaceContextto avoid unhandled errors caught by Sentry.Changelog
CHANGELOG entry:null
Related issues
Fixes: #22286
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist