PHANTOM
🇮🇳 IN
Skip to content

[Wallet]: Edit Visible Assets Model Performance Improvements#32894

Merged
Douglashdaniel merged 1 commit intomasterfrom
wallet-edit-visible-assets-model-performance-improvements
Jan 5, 2026
Merged

[Wallet]: Edit Visible Assets Model Performance Improvements#32894
Douglashdaniel merged 1 commit intomasterfrom
wallet-edit-visible-assets-model-performance-improvements

Conversation

@Douglashdaniel
Copy link
Contributor

Description

Improves the Edit Visible Assets model performance

Previously we would wrap each individual NFT image in a chrome-untrusted:// iframe for sanitization, this caused poor performance in the Edit Visible Assets model if you owned a lot of NFT's

This change will now rely on chrome://image to handle NFT image sanitization making the Edit Visible Assets model a lot faster.

Resolves brave/brave-browser#51519

  1. Open the Wallet and then open the Edit Visible Assets modal
  2. Start scrolling through the list
  3. It should be a lot smoother now and not lag as you scroll.

Before:

Screen.Recording.6.mov

After:

Screen.Recording.12.mov

@Douglashdaniel Douglashdaniel self-assigned this Dec 18, 2025
@Douglashdaniel Douglashdaniel requested a review from a team as a code owner December 18, 2025 21:43
@github-actions github-actions bot added CI/storybook-url Deploy storybook and provide a unique URL for each build feature/web3/wallet labels Dec 18, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 18, 2025

📋 Code Owners Summary

4 file(s) changed, 4 with assigned owners

1 team(s) affected: @brave/crypto-wallets-front-end


Owners and Their Files

@brave/crypto-wallets-front-end — 4 file(s)

Copy link
Member

@onyb onyb left a comment

Choose a reason for hiding this comment

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

Left a small remark, otherwise looks good to me!

@github-actions
Copy link
Contributor

Chromium major version is behind target branch (143.0.7499.146 vs 144.0.7559.31). Please rebase.

@github-actions github-actions bot added the chromium-version-mismatch The Chromium version on the PR branch does not match the version on the target branch label Dec 22, 2025
Copy link
Member

@kdenhartog kdenhartog left a comment

Choose a reason for hiding this comment

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

I looked through this and made sure the NFTIconWrapper is still using chrome://image to sanitize the image and make sure we're not accidentally allowing an SVG image to load such that untrusted JS loaded from the image would be executed inside the WebUI and have access to mojo APIs.

This was my major concern previously which is why we previously iframed them. However, now that chrome://image is doing sanitization for us we don't need to be concerned about this and gain the performance improvements of dropping separate iframes.

@Douglashdaniel Douglashdaniel force-pushed the wallet-edit-visible-assets-model-performance-improvements branch from b57b306 to 42295d1 Compare January 5, 2026 14:37
@github-actions github-actions bot removed the chromium-version-mismatch The Chromium version on the PR branch does not match the version on the target branch label Jan 5, 2026
@Douglashdaniel Douglashdaniel force-pushed the wallet-edit-visible-assets-model-performance-improvements branch from 42295d1 to 7cc1e09 Compare January 5, 2026 19:40
@Douglashdaniel Douglashdaniel merged commit ebc3410 into master Jan 5, 2026
20 checks passed
@Douglashdaniel Douglashdaniel deleted the wallet-edit-visible-assets-model-performance-improvements branch January 5, 2026 21:34
@github-actions github-actions bot added this to the 1.87.x - Nightly milestone Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/storybook-url Deploy storybook and provide a unique URL for each build feature/web3/wallet needs-security-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Edit Visible Assets model Slow Performance

3 participants