Zcash × Brave WalletPersonal project

Type to search. Use ↑ ↓ and Enter to open a result.

Improve `raw_ptr<T>` uses around wallet

In a Release build Issue General Zcash support

Lead item brave-browser#42016 · opened by cdesouza-chromium · last source update

Issue state

Closed (completed)

Closed .

Implementation

  • brave-core#26332 merged 2024-11-01 into master by cdesouza-chromium
    [DanglingPtr][wallet] Prefer non-nullable states pt.1
    Linked by: GitHub closing reference, “Resolves/Fixes” line in the PR description
  • brave-core#26343 merged 2024-11-05 into master by cdesouza-chromium
    [DanglingPtr][wallet] Prefer non-nullable states pt.2
    Linked by: GitHub closing reference, “Resolves/Fixes” line in the PR description

Release notes

No platform changelog lists this item.

Validation

Not QA-tested (QA/No).

No QA pass labels.

QA labels are Brave’s own validation records per OS. They are not independent verification by this tracker.

Target

1.74.x - Release

For closed issues Brave sets the milestone to the earliest version line it believes the change landed in, and renames milestones as branches move from Nightly to Beta to Release. This tracker shows it but relies on build ancestry and release notes for availability.

Platforms (OS labels): Desktop

Owner: cdesouza-chromium · PR authors: cdesouza-chromium

Build presence

Whether a merged pull request in this group is an ancestor of the brave-core tag of each platform’s current build (from versions.brave.com). Code presence is not the same as a feature being exposed on that platform.

PlatformReleaseBetaNightly
DesktopIncluded 1.97.59in v1.96.61 (GitHub compare v1.96.61...6d0ffe2f: behind); later builds of the same history include it (brave-core#26332)Included 1.98.47in v1.96.61 (GitHub compare v1.96.61...6d0ffe2f: behind); later builds of the same history include it (brave-core#26332)Included 1.100.5in v1.96.61 (GitHub compare v1.96.61...6d0ffe2f: behind); later builds of the same history include it (brave-core#26332)
AndroidIncluded 1.97.57in v1.96.61 (GitHub compare v1.96.61...6d0ffe2f: behind); later builds of the same history include it (brave-core#26332)Included 1.98.52in v1.96.61 (GitHub compare v1.96.61...6d0ffe2f: behind); later builds of the same history include it (brave-core#26332)Included 1.100.5in v1.96.61 (GitHub compare v1.96.61...6d0ffe2f: behind); later builds of the same history include it (brave-core#26332)
iOSIncluded 1.96.62in v1.96.61 (GitHub compare v1.96.61...6d0ffe2f: behind); later builds of the same history include it (brave-core#26332)Included 1.99.44in v1.96.61 (GitHub compare v1.96.61...6d0ffe2f: behind); later builds of the same history include it (brave-core#26332)Included 1.100.7in v1.96.61 (GitHub compare v1.96.61...6d0ffe2f: behind); later builds of the same history include it (brave-core#26332)

Members and their history

Issue

brave-browser#42016 Improve `raw_ptr<T>` uses around wallet

State: closed (completed) · created · closed · updated · discovered via linked:brave/brave-core#26332, linked:brave/brave-core#26343

QA/No dev-concern release-notes/exclude feature/web3/wallet OS/Desktop feature/web3/wallet/core

Description There are a few cases of dangling pointers in wallets that must be sorted. But we should first communicate better optional references, by documenting necessary references as raw references, rather than pointers.

Timeline (7 of 10 events)
  1. 2024-11-01 01:57 Label added OS/Desktop by cdesouza-chromium
  2. 2024-11-01 01:57 Label added QA/No by cdesouza-chromium
  3. 2024-11-01 01:57 Label added release-notes/exclude by cdesouza-chromium
  4. 2024-11-01 01:59 Referenced by brave-core#26332 by cdesouza-chromium
  5. 2024-11-01 17:47 Closed completed brave-core#26332 by cdesouza-chromium
  6. 2024-11-01 17:47 Milestone set 1.73.x - Nightly by brave-builds
  7. 2024-11-02 17:46 Referenced by brave-core#26343 by cdesouza-chromium
Pull request

brave-core#26332 [DanglingPtr][wallet] Prefer non-nullable states pt.1

State: merged 2024-11-01 · created · closed · updated · discovered via path:components/brave_wallet/browser/zcash, search:orchard is:pr, search:zcash is:pr

feature/web3/wallet feature/web3/wallet/core puLL-Merge

This change touches several parts of wallets where we are passing pointers around that are expected to be in a valid state, and remain so for the duration of the lifetime of the object receiving them. Historically, chromium had a guideline that required passing non-owning references as raw pointers. This has changed for a while now, and there are even supporting types like raw_ref for it. Raw pointers should be used for cases where flexibility is required about the lifetime…

Timeline (5 of 8 events)
  1. 2024-11-01 17:47 Merged master by cdesouza-chromium
  2. 2024-11-01 17:47 Closed by cdesouza-chromium
  3. 2024-11-01 17:47 Milestone set 1.73.x - Nightly by github-actions
  4. 2024-11-06 18:15 Milestone removed 1.73.x - Nightly by bsclifton
  5. 2024-11-06 18:15 Milestone set 1.74.x - Nightly by bsclifton
Pull request

brave-core#26343 [DanglingPtr][wallet] Prefer non-nullable states pt.2

State: merged 2024-11-05 · created · closed · updated · discovered via path:components/brave_wallet/browser/zcash, search:zcash is:pr

feature/web3/wallet feature/web3/wallet/core puLL-Merge

This change touches several parts of wallets where we are passing pointers around that are expected to be in a valid state, and remain so for the duration of the lifetime of the object receiving them. Historically, chromium had a guideline that required passing non-owning references as raw pointers. This has changed for a while now, and there are even supporting types like raw_ref for it. Raw pointers should be used for cases where flexibility is required about the lifetime…

Timeline (5 of 8 events)
  1. 2024-11-05 11:05 Merged master by cdesouza-chromium
  2. 2024-11-05 11:05 Closed by cdesouza-chromium
  3. 2024-11-05 11:05 Milestone set 1.73.x - Nightly by github-actions
  4. 2024-11-06 18:12 Milestone removed 1.73.x - Nightly by bsclifton
  5. 2024-11-06 18:12 Milestone set 1.74.x - Nightly by bsclifton