-
Notifications
You must be signed in to change notification settings - Fork 5.5k
fix: Replace metamask_sendDomainMetadata with a no-op
#39642
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
Merged
+11
−68
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
✨ Files requiring CODEOWNER review ✨👨🔧 @MetaMask/wallet-integrations (2 files, +9 -59)
|
d5ac62f to
4507ee6
Compare
metamask_sendDomainMetadatametamask_sendDomainMetadata with a no-op
adonesky1
reviewed
Jan 29, 2026
app/scripts/lib/rpc-method-middleware/handlers/send-metadata.ts
Outdated
Show resolved
Hide resolved
Contributor
Builds ready [b4906b8]
UI Startup Metrics (1332 ± 117 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Contributor
Builds ready [cf06db4]
UI Startup Metrics (1349 ± 121 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
adonesky1
approved these changes
Jan 29, 2026
Contributor
adonesky1
left a comment
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.
LGTM
Mrtenz
approved these changes
Jan 30, 2026
github-merge-queue bot
pushed a commit
that referenced
this pull request
Jan 30, 2026
<!-- 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. --> ## **Description** Replace `metamask_sendDomainMetadata` with a no-op as we no longer need the provider to report metadata for sites. The `SubjectMetadataController` is populated already using the tabs API. The RPC method is kept around for backwards compatibility. [](https://codespaces.new/MetaMask/metamask-extension/pull/39642?quickstart=1) ## **Changelog** CHANGELOG entry: Calling the RPC method `metamask_sendDomainMetadata` no longer has any effect. ## **Manual testing steps** 1. Connect to any dapp 2. See that the name and icon for a site is populated in the connection screen <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Disables domain-metadata reporting from the inpage provider and removes the backend hook that persisted this metadata, which could affect any flows still relying on `metamask_sendDomainMetadata` for site name/icon display. > > **Overview** > Stops the inpage provider from sending site metadata by setting `shouldSendMetadata: false` during `initializeProvider`. > > Replaces the `metamask_sendDomainMetadata` (`MESSAGE_TYPE.SEND_METADATA`) RPC handler with a **no-op** that always returns `true`, removing subject-metadata persistence hooks (`addSubjectMetadata`/`subjectType`) from middleware wiring and updating the unit test to match. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit cf06db4. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
7 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
INVALID-PR-TEMPLATE
PR's body doesn't match template
release-13.18.0
Issue or pull request that will be included in release 13.18.0
size-S
team-core-platform
Core Platform team
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
Replace
metamask_sendDomainMetadatawith a no-op as we no longer need the provider to report metadata for sites. TheSubjectMetadataControlleris populated already using the tabs API. The RPC method is kept around for backwards compatibility.Changelog
CHANGELOG entry: Calling the RPC method
metamask_sendDomainMetadatano longer has any effect.Manual testing steps
Note
Medium Risk
Disables domain-metadata reporting from the inpage provider and removes the backend hook that persisted this metadata, which could affect any flows still relying on
metamask_sendDomainMetadatafor site name/icon display.Overview
Stops the inpage provider from sending site metadata by setting
shouldSendMetadata: falseduringinitializeProvider.Replaces the
metamask_sendDomainMetadata(MESSAGE_TYPE.SEND_METADATA) RPC handler with a no-op that always returnstrue, removing subject-metadata persistence hooks (addSubjectMetadata/subjectType) from middleware wiring and updating the unit test to match.Written by Cursor Bugbot for commit cf06db4. This will update automatically on new commits. Configure here.