feat(support): include canonical profile id in support request URLs
Description
Add metamask_canonical_profile_id to support links when users consent to share data, using a shared buildSupportLinkWithUserData helper.
Changelog
CHANGELOG entry: Adds metamask_canonical_profile_id to support links when users consent to share data
Related issues
Fixes: https://github.com/MetaMask/metamask-extension/issues/43777
Manual testing steps
- Go to menu > Support > Confirm (Share device details with support): this opens a new tab with the support website => confirm metamask_canonical_profile_id param is defined in the url
- Go to menu > Settings > About MetaMask > Visit our support center > Confirm (Share device details with support): this opens a new tab with the support website => confirm metamask_canonical_profile_id param is defined in the url
- Build Extension with
ENABLE_SETTINGS_PAGE_DEV_OPTIONS=truein.metamaskrc. Go to menu > Settings > Debug > Generate a Page Crash > Contact support > Confirm (Share device details with support): this opens a new tab with the support website => confirm metamask_canonical_profile_id param is defined in the url
Screenshots/Recordings
NA
Pre-merge author checklist
- [ ] I've followed MetaMask Contributor Docs and MetaMask Extension Coding Standards.
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using JSDoc format if applicable
- [ ] I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
Pre-merge reviewer checklist
- [ ] 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.
[!NOTE] Low Risk Small, consent-gated change to support link query params with dedicated tests; no auth or payment logic touched.
Overview Adds
metamask_canonical_profile_idto support URLs when the user accepts sharing device details, so support can correlate requests with the canonical identity profile.Support link query building is centralized in
buildSupportLinkWithUserData(shared/lib/build-support-link.ts), replacing duplicatedURL/searchParamslogic. The helper always setsmetamask_versionand optionally appends profile, canonical profile, MetaMetrics, and Shield IDs when values exist.
VisitSupportDataConsentModalanduseHandleSubscriptionSupportActionnow readcanonicalProfileIdfrom session data and pass it through the helper on accept/contact-support flows. Modal and helper unit tests assert the new param and that reject still omits identifying query params.Reviewed by Cursor Bugbot for commit 0e5d50aa07afc3aff09581d0cfa47829a504af25. Bugbot is set up for automated code reviews on this repo. Configure here.
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.
✨ Files requiring CODEOWNER review ✨
🔐 @MetaMask/web3auth (1 files, +13 -14)
- 📁 ui/
- 📁 hooks/
- 📁 subscription/
- 📄
useSubscription.ts+13 -14
- 📄
- 📁 subscription/
- 📁 hooks/
Baseline (latest main): 0feee37 | Date: 6/23/2026 | Pipeline: 28018557016 | Baseline logs 📈 Results compared to the previous 5 runs on main 🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds) 📈 Results compared to the previous 5 runs on main 🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds) 📈 Results compared to the previous 5 runs on main 🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)Builds ready [b4ae065]
⚡ Performance Benchmarks (Total: 🟢 15 pass · 🟡 9 warn · 🔴 0 fail)
Interaction Benchmarks · Samples: 5
Benchmark chrome-webpack firefox-webpack loadNewAccount
[Sentry log · main/release]🟡 [CI log] 🟡 [CI log] confirmTx
[Sentry log · main/release]🟢 [CI log] 🟡 [CI log] bridgeUserActions
[Sentry log · main/release]🟢 [CI log] 🟢 [CI log] loadNewAccount/inp: -10%confirmTx/inp: +27%bridgeUserActions/bridge_load_page: -16%bridgeUserActions/longTaskCount: +25%bridgeUserActions/longTaskTotalDuration: +11%bridgeUserActions/longTaskMaxDuration: -14%bridgeUserActions/tbt: -19%loadNewAccount/inp: -18%loadNewAccount/lcp: +1171%confirmTx/confirm_tx: +12%confirmTx/longTaskCount: -100%confirmTx/longTaskTotalDuration: -100%confirmTx/longTaskMaxDuration: -100%confirmTx/tbt: -100%confirmTx/total: +12%confirmTx/inp: +67%confirmTx/lcp: +1253%bridgeUserActions/bridge_load_page: +190%bridgeUserActions/bridge_load_asset_picker: +12%bridgeUserActions/longTaskCount: -100%bridgeUserActions/longTaskTotalDuration: -100%bridgeUserActions/longTaskMaxDuration: -100%bridgeUserActions/tbt: -100%bridgeUserActions/total: +13%bridgeUserActions/inp: -12%bridgeUserActions/fcp: -47%bridgeUserActions/lcp: +1180%loadNewAccount/FCP: p75 1.9sloadNewAccount/FCP: p75 1.8sconfirmTx/FCP: p75 1.9sStartup Benchmarks · Samples: 100
Benchmark chrome-webpack firefox-webpack startupStandardHome
[Sentry log · main/release]🟢 [CI log] 🟢 [CI log] startupPowerUserHome
[Sentry log · main/release]– 🟡 [CI log] startupStandardHome/domInteractive: -17%startupStandardHome/fcp: -16%startupPowerUserHome/uiStartup: +11%startupPowerUserHome/domInteractive: +16%startupPowerUserHome/backgroundConnect: -13%startupPowerUserHome/inp: +23%startupPowerUserHome/fcp: +12%startupPowerUserHome/INP: p75 248msstartupPowerUserHome/LCP: p75 3.8sUser Journey Benchmarks · Samples: 5 · mock API
Benchmark chrome-webpack firefox-webpack onboardingImportWallet
[Sentry log · main/release]🟢 [CI log] 🟢 [CI log] onboardingNewWallet
[Sentry log · main/release]🟢 [CI log] 🟡 [CI log] totalassetDetails
[Sentry log · main/release]🟢 [CI log] 🟡 [CI log] solanaAssetDetails
[Sentry log · main/release]🟢 [CI log] 🟡 [CI log] importSrpHome
[Sentry log · main/release]🟢 [CI log] 🟡 [CI log] sendTransactions
[Sentry log · main/release]🟡 [CI log] 🟢 [CI log] swap
[Sentry log · main/release]🟢 [CI log] 🟢 [CI log] onboardingImportWallet/metricsToWalletReadyScreen: -15%onboardingImportWallet/doneButtonToHomeScreen: -81%onboardingImportWallet/openAccountMenuToAccountListLoaded: -100%onboardingImportWallet/longTaskCount: -77%onboardingImportWallet/longTaskTotalDuration: -89%onboardingImportWallet/longTaskMaxDuration: -85%onboardingImportWallet/tbt: -95%onboardingImportWallet/total: -85%onboardingNewWallet/createPwToRecoveryScreen: +10%onboardingNewWallet/skipBackupToMetricsScreen: +12%onboardingNewWallet/agreeButtonToOnboardingSuccess: +15%onboardingNewWallet/doneButtonToAssetList: -37%onboardingNewWallet/longTaskCount: -44%onboardingNewWallet/longTaskTotalDuration: -49%onboardingNewWallet/longTaskMaxDuration: -20%onboardingNewWallet/tbt: -44%onboardingNewWallet/total: -32%solanaAssetDetails/assetClickToPriceChart: -65%solanaAssetDetails/total: -65%solanaAssetDetails/cls: +17%importSrpHome/openAccountMenuAfterLogin: -19%importSrpHome/homeAfterImportWithNewWallet: -35%importSrpHome/longTaskCount: -36%importSrpHome/longTaskTotalDuration: -44%importSrpHome/longTaskMaxDuration: -22%importSrpHome/tbt: -52%importSrpHome/total: -34%importSrpHome/inp: -35%importSrpHome/cls: -57%sendTransactions/selectTokenToSendFormLoaded: +39%sendTransactions/longTaskCount: +25%sendTransactions/longTaskTotalDuration: -15%sendTransactions/longTaskMaxDuration: -12%sendTransactions/tbt: -27%sendTransactions/inp: -17%sendTransactions/cls: -90%sendTransactions/FCP: p75 1.8sassetDetails/INP: p75 216msassetDetails/FCP: p75 2.0ssolanaAssetDetails/FCP: p75 2.0simportSrpHome/FCP: p75 1.9sDapp Page Load Benchmarks · Samples: 100
Benchmark chrome-webpack dappPageLoad
[Sentry log · main/release]🟢 [CI log] Bundle size diffs
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code
Baseline (latest main): 6dcfdc2 | Date: 6/23/2026 | Pipeline: 28026153521 | Baseline logs 📈 Results compared to the previous 5 runs on main 🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds) 📈 Results compared to the previous 5 runs on main 🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds) 📈 Results compared to the previous 5 runs on main 🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)Builds ready [0e5d50a]
⚡ Performance Benchmarks (Total: 🟢 10 pass · 🟡 14 warn · 🔴 0 fail)
Interaction Benchmarks · Samples: 5
Benchmark chrome-webpack firefox-webpack loadNewAccount
[Sentry log · main/release]🟡 [CI log] 🟢 [CI log] confirmTx
[Sentry log · main/release]🟡 [CI log] 🟡 [CI log] bridgeUserActions
[Sentry log · main/release]🟢 [CI log] 🟡 [CI log] loadNewAccount/load_new_account: +12%loadNewAccount/total: +12%loadNewAccount/inp: -21%confirmTx/longTaskCount: +33%confirmTx/longTaskTotalDuration: +30%confirmTx/tbt: +16%confirmTx/fcp: +10%bridgeUserActions/longTaskCount: +67%bridgeUserActions/longTaskTotalDuration: +56%bridgeUserActions/tbt: +20%bridgeUserActions/inp: -17%loadNewAccount/inp: +14%loadNewAccount/fcp: -48%loadNewAccount/lcp: +1150%confirmTx/confirm_tx: +12%confirmTx/longTaskCount: -100%confirmTx/longTaskTotalDuration: -100%confirmTx/longTaskMaxDuration: -100%confirmTx/tbt: -100%confirmTx/total: +12%confirmTx/lcp: +1165%bridgeUserActions/bridge_load_page: +200%bridgeUserActions/bridge_load_asset_picker: +33%bridgeUserActions/bridge_search_token: +14%bridgeUserActions/longTaskCount: -100%bridgeUserActions/longTaskTotalDuration: -100%bridgeUserActions/longTaskMaxDuration: -100%bridgeUserActions/tbt: -100%bridgeUserActions/total: +47%bridgeUserActions/inp: +30%bridgeUserActions/lcp: +1192%loadNewAccount/FCP: p75 1.8sconfirmTx/FCP: p75 1.9sconfirmTx/FCP: p75 1.8sbridgeUserActions/FCP: p75 1.9sStartup Benchmarks · Samples: 100
Benchmark chrome-webpack firefox-webpack startupStandardHome
[Sentry log · main/release]🟢 [CI log] 🟡 [CI log] loadScriptsstartupPowerUserHome
[Sentry log · main/release]– 🟡 [CI log] startupStandardHome/uiStartup: -35%startupStandardHome/load: -35%startupStandardHome/domContentLoaded: -36%startupStandardHome/domInteractive: -32%startupStandardHome/firstPaint: -20%startupStandardHome/backgroundConnect: -36%startupStandardHome/firstReactRender: -34%startupStandardHome/initialActions: -33%startupStandardHome/loadScripts: -36%startupStandardHome/setupStore: -31%startupStandardHome/numNetworkReqs: -29%startupStandardHome/longTaskCount: -33%startupStandardHome/longTaskTotalDuration: -42%startupStandardHome/longTaskMaxDuration: -39%startupStandardHome/tbt: -45%startupStandardHome/inp: -28%startupStandardHome/fcp: -34%startupStandardHome/lcp: +186%startupStandardHome/domInteractive: +14%startupStandardHome/fcp: +15%startupPowerUserHome/backgroundConnect: -15%startupPowerUserHome/INP: p75 224msstartupPowerUserHome/LCP: p75 3.6sUser Journey Benchmarks · Samples: 5 · mock API
Benchmark chrome-webpack firefox-webpack onboardingImportWallet
[Sentry log · main/release]🟢 [CI log] 🟢 [CI log] onboardingNewWallet
[Sentry log · main/release]🟢 [CI log] 🟡 [CI log] totalassetDetails
[Sentry log · main/release]🟡 [CI log] 🟡 [CI log] solanaAssetDetails
[Sentry log · main/release]🟡 [CI log] 🟡 [CI log] importSrpHome
[Sentry log · main/release]🟢 [CI log] 🟡 [CI log] sendTransactions
[Sentry log · main/release]🟡 [CI log] 🟡 [CI log] swap
[Sentry log · main/release]🟢 [CI log] 🟢 [CI log] onboardingImportWallet/metricsToWalletReadyScreen: -23%onboardingImportWallet/doneButtonToHomeScreen: -81%onboardingImportWallet/openAccountMenuToAccountListLoaded: -92%onboardingImportWallet/longTaskCount: -52%onboardingImportWallet/longTaskTotalDuration: -85%onboardingImportWallet/longTaskMaxDuration: -88%onboardingImportWallet/tbt: -98%onboardingImportWallet/total: -84%onboardingNewWallet/createPwToRecoveryScreen: +13%onboardingNewWallet/doneButtonToAssetList: -16%onboardingNewWallet/longTaskCount: -50%onboardingNewWallet/longTaskTotalDuration: -55%onboardingNewWallet/longTaskMaxDuration: -28%onboardingNewWallet/tbt: -55%onboardingNewWallet/total: -14%solanaAssetDetails/assetClickToPriceChart: -60%solanaAssetDetails/total: -60%solanaAssetDetails/inp: +12%solanaAssetDetails/fcp: +16%importSrpHome/loginToHomeScreen: -19%importSrpHome/homeAfterImportWithNewWallet: -34%importSrpHome/longTaskCount: -20%importSrpHome/longTaskTotalDuration: -40%importSrpHome/longTaskMaxDuration: -20%importSrpHome/tbt: -45%importSrpHome/total: -32%importSrpHome/inp: -38%importSrpHome/cls: -46%sendTransactions/longTaskCount: -100%sendTransactions/longTaskTotalDuration: -100%sendTransactions/longTaskMaxDuration: -100%sendTransactions/tbt: -100%sendTransactions/inp: -30%sendTransactions/fcp: +15%sendTransactions/cls: -91%assetDetails/FCP: p75 1.8ssolanaAssetDetails/FCP: p75 1.8ssendTransactions/FCP: p75 2.1sassetDetails/FCP: p75 1.9ssolanaAssetDetails/FCP: p75 1.8simportSrpHome/FCP: p75 2.0ssendTransactions/FCP: p75 1.9sDapp Page Load Benchmarks · Samples: 100
Benchmark chrome-webpack dappPageLoad
[Sentry log · main/release]🟢 [CI log] Bundle size diffs [🚨 Warning! Bundle size has increased!]