[PR #3232] [PM-8029] Icon loading fixes and uri parsing improvements #10250

Closed
opened 2026-04-11 02:38:59 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/bitwarden/android/pull/3232

State: closed
Merged: No


Type of change

  • Bug fix
  • New feature development
  • Tech debt (refactoring, code cleanup, dependency upgrades, etc)
  • Build/deploy pipeline (DevOps)
  • Other

Objective

  • Avoid loading icons when the user has chosen not to display them
  • Remove abitrary TLD restriction for link open / favicon loading check by adding Nager.PublicSuffix
  • Only try to load favicons for valid domains (via publicsuffix)
  • Never attempt to load favicons for .onion / .i2p domains
  • Improve uri parsing util without changing the existing behavior

I've also added some suggestions on what changes to the parsing behavior should be made in my opinion.

Code changes

  • file.ext: Description of what was changed and why

  • src/Core/Core.csproj: Add NuGet package to load publicsuffixlist, add asset

  • src/Core/Pages/Vault/CipherItemViewModel.cs: Don't load favicon if user has disabled favicons

  • src/Core/Utilities/CoreHelpers.cs: Uri parsing improvements with suggested breaking changes

  • src/Core/Utilities/IconImageConverter.cs: Favicon loading fixes and improvements

  • src/Core/Utilities/MauiAssetRuleProvider.cs: Maui asset rule provider

  • src/Core/Utilities/ServiceContainer.cs: Register rule provider

Before you submit

  • Please check for formatting errors (dotnet format --verify-no-changes) (required)
  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team
**Original Pull Request:** https://github.com/bitwarden/android/pull/3232 **State:** closed **Merged:** No --- ## Type of change - [x] Bug fix - [ ] New feature development - [x] Tech debt (refactoring, code cleanup, dependency upgrades, etc) - [ ] Build/deploy pipeline (DevOps) - [ ] Other ## Objective * Avoid loading icons when the user has chosen not to display them * Remove abitrary TLD restriction for link open / favicon loading check by adding `Nager.PublicSuffix` * Only try to load favicons for valid domains (via publicsuffix) * Never attempt to load favicons for `.onion` / `.i2p` domains * Improve uri parsing util without changing the existing behavior I've also added some suggestions on what changes to the parsing behavior should be made in my opinion. ## Code changes <!--Explain the changes you've made to each file or major component. This should help the reviewer understand your changes--> <!--Also refer to any related changes or PRs in other repositories--> * **file.ext:** Description of what was changed and why * `src/Core/Core.csproj`: Add NuGet package to load publicsuffixlist, add asset * `src/Core/Pages/Vault/CipherItemViewModel.cs`: Don't load favicon if user has disabled favicons * `src/Core/Utilities/CoreHelpers.cs`: Uri parsing improvements with suggested breaking changes * `src/Core/Utilities/IconImageConverter.cs`: Favicon loading fixes and improvements * `src/Core/Utilities/MauiAssetRuleProvider.cs`: Maui asset rule provider * `src/Core/Utilities/ServiceContainer.cs`: Register rule provider ## Before you submit - Please check for formatting errors (`dotnet format --verify-no-changes`) (required) - Please add **unit tests** where it makes sense to do so (encouraged but not required) - If this change requires a **documentation update** - notify the documentation team - If this change has particular **deployment requirements** - notify the DevOps team
GiteaMirror added the pull-request label 2026-04-11 02:38:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#10250