Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Aug 1, 2025

Description

The policy override has been updated to correct the identifier for @ethersproject/random. The ID changed to start with ethers, which resulted in the override not being applied correctly. This resulted in this console message every time the wallet started: WARNING: Missing strong random number source.

The warning should no longer appear upon startup.

Open in GitHub Codespaces

Changelog

CHANGELOG entry: Remove misleading console warning

Related issues

Fixes #21926

Manual testing steps

  1. Install the extension
  2. Open the background process DevTools
  3. Ensure the warning is no longer present.

Screenshots/Recordings

Before

Screenshot 2025-08-01 at 17 55 18

After

Screenshot 2025-08-01 at 18 46 05

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.

The policy override has been updated to correct the identifier for
`@ethersproject/random`. The ID changed to start with `ethers`, which
resulted in the override not being applied correctly. This resulted in
this console message every time the wallet started:
`WARNING: Missing strong random number source`.

The warning should no longer appear upon startup.

Fixes #21926
@Gudahtt Gudahtt force-pushed the fix-misleading-console-warning branch from ec0c453 to f07f058 Compare August 1, 2025 20:28
@Gudahtt
Copy link
Member Author

Gudahtt commented Aug 1, 2025

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

metamaskbot commented Aug 1, 2025

✨ Files requiring CODEOWNER review ✨

🧩 @MetaMask/extension-devs (5 files, +9 -17)
  • 📁 lavamoat/
    • 📁 browserify/
      • 📁 beta/
        • 📄 policy.json +2 -4
      • 📁 experimental/
        • 📄 policy.json +2 -4
      • 📁 flask/
        • 📄 policy.json +2 -4
      • 📁 main/
        • 📄 policy.json +2 -4
        • 📄 policy-override.json +1 -1

📜 @MetaMask/policy-reviewers (5 files, +9 -17)
  • 📁 lavamoat/
    • 📁 browserify/
      • 📁 beta/
        • 📄 policy.json +2 -4
      • 📁 experimental/
        • 📄 policy.json +2 -4
      • 📁 flask/
        • 📄 policy.json +2 -4
      • 📁 main/
        • 📄 policy.json +2 -4
        • 📄 policy-override.json +1 -1

Tip

Follow the policy review process outlined in the LavaMoat Policy Review Process doc before expecting an approval from Policy Reviewers.


🔗 @MetaMask/supply-chain (5 files, +9 -17)
  • 📁 lavamoat/
    • 📁 browserify/
      • 📁 beta/
        • 📄 policy.json +2 -4
      • 📁 experimental/
        • 📄 policy.json +2 -4
      • 📁 flask/
        • 📄 policy.json +2 -4
      • 📁 main/
        • 📄 policy.json +2 -4
        • 📄 policy-override.json +1 -1

@metamaskbot
Copy link
Collaborator

Policies updated.
👀 Please review the diff for suspicious new powers.

🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff

@metamaskbot
Copy link
Collaborator

Builds ready [ae29561]
UI Startup Metrics (1149 ± 63 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1149103013126312021263
load97587211246010271072
domContentLoaded96886311146110211062
domInteractive1813107121636
firstPaint6379110943849771060
backgroundConnect2152012498217232
firstReactRender20123952031
getState933461023
initialActions30285215
loadScripts76065490761818852
setupStore74162713
WebpackHomeuiStartup22331712261820823672572
load16741237197816917711924
domContentLoaded16671233197216817671914
domInteractive1711101141445
firstPaint1756063479213320
backgroundConnect2914295293251
firstReactRender22389406115374400
getState215286521338
initialActions5214279
loadScripts16621231196116617651902
setupStore226316481529
FirefoxBrowserifyHomeuiStartup13071132171510813651489
load112797313518211831278
domContentLoaded112797313518211821278
domInteractive993331849109210
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2514107132840
firstReactRender24205372543
getState728513540
initialActions40326220
loadScripts110695813377811621242
setupStore73478629
WebpackHomeuiStartup16331416220416717371968
load13571162172213814701662
domContentLoaded13561161172113814701662
domInteractive99343205198262
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect3419116183487
firstReactRender55457255963
getState9218725621
initialActions5110013314
loadScripts13281144169813414381599
setupStore95557823
Benchmark value 216 exceeds gate value 10 for chrome browserify home mean backgroundConnect
Benchmark value 3 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 15 exceeds gate value 1.2 for chrome browserify home p95 initialActions
Benchmark value 2233 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 2573 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 400 exceeds gate value 370 for chrome webpack home p95 firstReactRender
Benchmark value 9 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 4 exceeds gate value 1 for firefox browserify home mean initialActions
Benchmark value 210 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 40 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 20 exceeds gate value 2 for firefox browserify home p95 initialActions
Benchmark value 29 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 1634 exceeds gate value 1615 for firefox webpack home mean uiStartup
Benchmark value 34 exceeds gate value 26 for firefox webpack home mean backgroundConnect
Benchmark value 55 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 1968 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1662 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1662 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 262 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 87 exceeds gate value 49 for firefox webpack home p95 backgroundConnect
Benchmark value 63 exceeds gate value 50 for firefox webpack home p95 firstReactRender
Benchmark value 14 exceeds gate value 2 for firefox webpack home p95 initialActions
Sum of mean exceeds: 301ms | Sum of p95 exceeds: 636.8ms
Sum of all benchmark exceeds: 937.8ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 43 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 10 Bytes (0%)

@Gudahtt Gudahtt marked this pull request as ready for review August 1, 2025 21:17
@Gudahtt Gudahtt requested review from a team as code owners August 1, 2025 21:17
@github-project-automation github-project-automation bot moved this to Needs dev review in PR review queue Aug 1, 2025
@github-project-automation github-project-automation bot moved this from Needs dev review to Review finalised - Ready to be merged in PR review queue Aug 1, 2025
@Gudahtt Gudahtt added this pull request to the merge queue Aug 1, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 1, 2025
@Gudahtt Gudahtt added this pull request to the merge queue Aug 1, 2025
Merged via the queue into main with commit 9f48c9c Aug 1, 2025
280 of 282 checks passed
@Gudahtt Gudahtt deleted the fix-misleading-console-warning branch August 1, 2025 22:18
@github-project-automation github-project-automation bot moved this from Review finalised - Ready to be merged to Merged, Closed or Archived in PR review queue Aug 1, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Aug 1, 2025
@metamaskbot metamaskbot added the release-13.2.0 Issue or pull request that will be included in release 13.2.0 label Aug 1, 2025
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

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[Bug]: WARNING: Missing strong random number source

5 participants