Skip to content

Conversation

@runway-github
Copy link
Contributor

@runway-github runway-github bot commented Aug 13, 2025

Description

This PR ensures that several sensitive items are removed from the flat
state that is made available to the frontend.

Changelog

CHANGELOG entry: tbd

Related issues

Fixes: no issue logged so far

Manual testing steps

  1. Open extension settings.
  2. Go to "Advanced" and click "Download state logs".
  3. Check whether sensitive fields have been sanitized.

Screenshots/Recordings

Before

After

Pre-merge author checklist

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.

Open in GitHub Codespaces 5e642ca

<!--
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.
-->

This PR ensures that several sensitive items are removed from the flat
state that is made available to the frontend.

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`

If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`

(This helps the Release Engineer do their job more quickly and
accurately)
-->

CHANGELOG entry: tbd

Fixes: no issue logged so far

1. Open extension settings.
2. Go to "Advanced" and click "Download state logs".
3. Check whether sensitive fields have been sanitized.

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

<!-- [screenshots/recordings] -->

<!-- [screenshots/recordings] -->

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

- [x] 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.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/35003?quickstart=1)
@github-actions
Copy link
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.

@metamaskbot metamaskbot added the team-runway-bot-deprecated DEPRECATED: please use "team-bots" instead label Aug 13, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [ad8df64]
UI Startup Metrics (1155 ± 59 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1155104013405911901263
load97887311395910091080
domContentLoaded96987011295910011074
domInteractive17144361734
firstPaint6587411393899981073
backgroundConnect2162012699218233
firstReactRender20134262132
getState13478121632
initialActions307410212
loadScripts76167092260792868
setupStore85274816
WebpackHomeuiStartup22261626265320823252592
load16781210196817517701924
domContentLoaded16711204195617317611915
domInteractive1811120171460
firstPaint1666349776182311
backgroundConnect251472112756
firstReactRender1839040487170389
getState2642986311268
initialActions7227127610
loadScripts16671201194417217561903
setupStore236299551536
FirefoxBrowserifyHomeuiStartup1256108115399613021448
load108294613557211311199
domContentLoaded108294513557211311199
domInteractive91332524295208
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect25156382943
firstReactRender23195062243
getState62548523
initialActions4015616223
loadScripts106393213347211121182
setupStore9316118531
WebpackHomeuiStartup15671389206513316331829
load13011147160010713601547
domContentLoaded13011147159910713601546
domInteractive94312934696256
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect342094183588
firstReactRender53427265764
getState11260131148
initialActions51499324
loadScripts12751122158011013401525
setupStore95478828
Benchmark value 216 exceeds gate value 10 for chrome browserify home mean backgroundConnect
Benchmark value 4 exceeds gate value 1 for chrome browserify home mean initialActions
Benchmark value 233 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 12 exceeds gate value 1.2 for chrome browserify home p95 initialActions
Benchmark value 2227 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 8 exceeds gate value 7 for chrome webpack home mean initialActions
Benchmark value 2592 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 61 exceeds gate value 57 for chrome webpack home p95 domInteractive
Benchmark value 389 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 268 exceeds gate value 195 for chrome webpack home p95 getState
Benchmark value 10 exceeds gate value 7 for chrome webpack home p95 initialActions
Benchmark value 26 exceeds gate value 25 for firefox browserify home mean backgroundConnect
Benchmark value 5 exceeds gate value 1 for firefox browserify home mean initialActions
Benchmark value 208 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 23 exceeds gate value 2 for firefox browserify home p95 initialActions
Benchmark value 31 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 34 exceeds gate value 26 for firefox webpack home mean backgroundConnect
Benchmark value 53 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 5 exceeds gate value 1 for firefox webpack home mean initialActions
Benchmark value 256 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 88 exceeds gate value 49 for firefox webpack home p95 backgroundConnect
Benchmark value 64 exceeds gate value 50 for firefox webpack home p95 firstReactRender
Benchmark value 48 exceeds gate value 32 for firefox webpack home p95 getState
Benchmark value 24 exceeds gate value 2 for firefox webpack home p95 initialActions
Sum of mean exceeds: 277ms | Sum of p95 exceeds: 691.8ms
Sum of all benchmark exceeds: 968.8ms

Copy link
Contributor

@gauthierpetetin gauthierpetetin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gauthierpetetin gauthierpetetin merged commit 8fdc10e into Version-v13.1.0 Aug 14, 2025
144 checks passed
@gauthierpetetin gauthierpetetin deleted the cherry-pick-13-1-0-5e642ca branch August 14, 2025 06:11
@github-actions github-actions bot locked and limited conversation to collaborators Aug 14, 2025
@metamaskbot metamaskbot added the release-13.1.0 Issue or pull request that will be included in release 13.1.0 label Aug 14, 2025
@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-13.1.0 on PR, as PR was cherry-picked in branch 13.1.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.1.0 Issue or pull request that will be included in release 13.1.0 team-runway-bot-deprecated DEPRECATED: please use "team-bots" instead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants