Chore/nitro-fetch websockets#32091
Conversation
Replaces global.fetch with react-native-nitro-fetch (native C++ transport) and registers startup prefetches for feature-flags and phishing lists so responses are ready before the JS bundle needs them. E2E builds are fully guarded: NitroFetchSetup.ts skips global.fetch install and prefetchOnAppStart when hasTestOverrides is set; shim.js owns global.fetch in that context using originalFetch (RN built-in, background-queue URLSession) to avoid the Main Queue deadlock that caused the test-snap-get-file 150s timeout.
Replaces global.fetch with react-native-nitro-fetch (native C++ transport) and registers startup prefetches for feature-flags and phishing lists so responses are ready before the JS bundle needs them. E2E builds are fully guarded: NitroFetchSetup.ts skips global.fetch install and prefetchOnAppStart when hasTestOverrides is set; shim.js owns global.fetch in that context using originalFetch (RN built-in, background-queue URLSession) to avoid the Main Queue deadlock that caused the test-snap-get-file 150s timeout.
… comments Restores the defensive GoogleService-Info.plist validation before FirebaseApp.configure() to prevent an uncatchable NSException crash when the plist is missing or contains a placeholder API_KEY on CI/test builds. Also tightens nitro-fetch prefetch comments to be more concise. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace global.WebSocket with react-native-nitro-websockets and prewarm the MetaMask backend gateway on cold start. Stacks on chore/nitro-fetch without duplicating fetch bootstrap changes. Co-authored-by: Cursor <cursoragent@cursor.com>
Cover W3C adapter behaviour for property and addEventListener listeners, send/close delegation, and startup prewarm registration. Co-authored-by: Cursor <cursoragent@cursor.com>
|
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. |
PR template — items to address before "Ready for review"Blocking — these items fail the workflow until fixed:
Warnings — informational, address before merging:
See docs/readme/ready-for-review.md for the full Definition of Ready for Review. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Caution MetaMask internal reviewing guidelines:
|
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #32091 +/- ##
==========================================
+ Coverage 83.41% 83.43% +0.01%
==========================================
Files 5835 5838 +3
Lines 152895 153004 +109
Branches 36118 36133 +15
==========================================
+ Hits 127545 127655 +110
- Misses 16596 16603 +7
+ Partials 8754 8746 -8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|



Description
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist