Commit Graph
78052 Commits
Author SHA1 Message Date
Anton Paymyshev d52bc7bbc8 [Wallet] Delay unlock with dev-wallet-password (#36340) 2026-05-12 14:47:37 +01:00
Michael Herrmann f3d9860706 Fix a cause of Omaha 4 update failures on macOS (#36347) 2026-05-12 15:44:33 +02:00
AlexeyBarabash 8ec4b73b5a [Android] Fixed Account section containment after logout (#36331)
Resolves https://github.com/brave/brave-browser/issues/55429
2026-05-12 14:32:34 +01:00
brave-builds 545cef58af 1.92.51 2026-05-12 12:33:09 +00:00
Anton Paymyshev e87218b708 [Wallet] Drop balance and tx related P3A metrics (#36303)
[Wallet] Remove some wallet p3a metrics
2026-05-12 19:12:50 +07:00
brave-builds 82c62c3c62 1.92.50 2026-05-12 12:07:37 +00:00
Simon Hong a9381fecc2 Improve brave_interactive_ui_tests target (#36297)
Added missing //chrome/installer/util:strings deps on Windows
- some installer strings are used in admin user
- used BraveTestLauncherDelegate
2026-05-12 20:11:10 +09:00
Aleksei Khoroshilov 36e67de5f0 Add temporary container icon generator. (#36269) 2026-05-12 16:17:24 +07:00
cdesouza-chromium 2d88b2061e MockToolProvider broken on master (#36343)
The implementation on master is mocking `OnNewGenerationLoop`, but this
function doesn't exist.
2026-05-12 15:57:34 +07:00
Simon Hong b817fff3c9 [Cleanup] Remove container concept from BraveToolbarView (#36338)
Resolves - no issue. cleanup.

Container view was gone from ToolbarView.
2026-05-12 17:22:51 +09:00
dependabot[bot] 0645ac124f Bump fast-uri from 3.0.3 to 3.1.2 (#36281)
fix brave/brave-browser#55387

Bumps [fast-uri](https://github.com/fastify/fast-uri) from 3.0.3 to 3.1.2.
- [Release notes](https://github.com/fastify/fast-uri/releases)
- [Commits](https://github.com/fastify/fast-uri/compare/v3.0.3...v3.1.2)

---
updated-dependencies:
- dependency-name: fast-uri
  dependency-version: 3.1.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-12 09:18:25 +01:00
Pete Miller d55499a5ea [AI Chat] Don't show Task UI when executing tools in a non-agent conversation (#36284)
* [AI Chat] Don't show Task UI when executing tools in a non-agent conversation

It's a pretty cumbersome UI that is more suitable when the conversation is performing potentially disruptive actions, like using the browser.
- Send the current conversation capabilities to the UI (currently a static list, so does not need events to update)
- Test the UI is not shown for chat conversation (we already test that it does show for agent conversations)
- Don't set the ToolUseTaskState to RUNNING when we're waiting on user input (in the future we'll probably add a WAITING state)
2026-05-12 06:53:59 +01:00
Sangwoo Ko 335f621d67 Resets visibility and clip path when horizontal scrolling is disabled. (#36314)
* Resets visibility and clip path when horizontal scrolling is disabled.

When horizontal scrolling is disabled, we should reset the visibility
and clip path of all tabs to make them visible and have no clip path.

* Update comment

* Scoped trace from helper function
2026-05-12 06:31:27 +01:00
Simon Hong 6259d66a71 Hide payment checkbox from import dialog (#36311)
Resolves: f/u PR to #36273

Manual test:

Add any payments info to Chrome and close
Go to brave://settings/importData and check no Payment methods checkbox
2026-05-12 11:51:40 +09:00
Agustín RuizandJay Harris af28202f10 Settings UI: fix main pane layout for Safety check bottom spacing (#36328)
* Update settings_ui.ts

* [settings-section]: Add bottom margin

---------

Co-authored-by: Jay Harris <jay.harris@outlook.co.nz>
2026-05-12 02:29:35 +01:00
brave-builds b957fa48c8 1.92.49 2026-05-12 00:03:49 +00:00
Alex e7ab325ddb Alekspop26 vpn v2 vendor boringtun part5 (#36261)
* [VPN 2.0] BoringTun 3p dependency: build script and GN buildflag

This is a multi-part change to add BoringTun dependency to the brave-core, to be used later in the VPN 2.0 architecture by a privileged helper on desktop OSes. The dependency is added to the existing VPN to ensure it actually gets built with the browser, but not yet distributed.

Part 5: build script that actually builds BoringTun dependency in an isolated bundled Rust/C++ environment; BUILD.gn that passes the necessary arguments to the script; GN buildflag 'enable_brave_vpn2_deps' that controls whether VPN 2.0 dependencies are getting built; off by default until we actually start using the dependency.

* [VPN 2.0] BoringTun 3p dependency: fix build script and turn off CI

The following changes have been made:
- Switched to the standard logging module, but still keeping the "quiet" logic.
- Moved platform-specific executable names to contants, removing the _exe_name function.
- Turn off building in CI temporarily.
2026-05-12 00:12:39 +01:00
Jay Harris 91cbd6fa5c [AI Chat]: Fix bug where you couldn't remove the current tab in global side panel mode (#36308) 2026-05-11 23:55:58 +01:00
Aleksei Seren 284145849b Fix serp metrics tests flakiness (#36332)
Fix SERP metrics tests flakiness

The PR advances time in SerpMetrics tests to a fixed date so they have a predictable
starting point regardless of what time MOCK_TIME sets on any given machine. When
MOCK_TIME starts near Unix epoch on January 1, 1970, calling UTCMidnight causes
InSecondsFSinceUnixEpoch to serialize the result to 0.0. Deserializing that value via
FromSecondsSinceUnixEpoch produces a null Time rather than UnixEpoch, and calling
UTCMidnight on null hits a DCHECK.
2026-05-11 23:54:04 +01:00
Douglas Daniel 6594b806a6 [AI Chat]: One Conversation List Menu at a Time (#36330)
Will now only allowing 1 button menu to be open at a time in the Conversation List
2026-05-11 16:44:34 -05:00
Szilard Szaloki f9adffdb91 Account: add "outside" icon to Log out buttons (#36327) 2026-05-11 20:55:05 +01:00
Douglas Daniel a5bb81e1f4 [Wallet]: Dont Show Partner Consent Modal During Reset (#36326)
Fixes a bug where the Meld Partner Consent modal was being displayed if you Reset your wallet while on the Buy screen.
2026-05-11 14:18:34 -05:00
Anthony Tseng 83a2be3b97 [iOS] [AI Chat] Scale image when either dimension exceeds target (#36325)
The previous AND check skipped scaling for images that exceeded only one
of the target dimensions (e.g. 8000x760), letting them be PNG-encoded at
full resolution and bypassing the intended ~5MB upload cap.
2026-05-11 19:48:23 +01:00
Christian Mazakas df1101e6de Revert "[Polkadot] [Wallet] add flag for Polkadot" (#36319)
Revert "[Polkadot] [Wallet] add flag for Polkadot (#36069)"

This reverts commit a84470a56c.
2026-05-11 11:26:56 -07:00
cdesouza-chromium 1796f9c9a0 [brockit] Tooling path further restructure for relative paths (#36322)
This change does further restruturing to `tools/cr`, as now we are fully
reliant on paths being completely relative, and derived primarily from
`Repository.brave.root` as an anchor for all other relative paths.

With relative paths already landed, we can now further break down
`alias`, and make tests more reliable, by using `FakeChromiumSrc`
sandboxing for all tests. In particular, `tools/cr/commit.py` has also
been introduced, and now the hook destination path is fully relative to
`brave-core` root. This potentially fixes a recurring issue that in some
cases running tests for `install-hook` was uninstalling hooks in the
current `brave-core` checkout.

As an additional, `git cr` calls were not propagating the `cwd`
correctly, and this can now be corrected too.

This change also adds a README.md, to provide some overview of this
path, and some instructions that may be useful to be picked by AI agents
when writing tests.

For better guarantees, `vpython3_utils.py` now handles the file path
resolution to the vpython3 runtime across all applications in this path.

Finally, logging policy is now established with a default logger for
anything using `terminal.py`. This logger can be replaced by individual
applications, but it is of great benefit to be able to call anything
using `terminal.py` with `--verbose` at any moment.
2026-05-11 17:27:13 +01:00
Carl BenderandCarl Bender c38ce2b5a2 Fix VisibilityTimer visibilitychange handling (#36300)
Fix VisibilityTimer visibilitychange listener typo

Co-authored-by: Carl Bender <mvpcarl@gmail.com>
2026-05-11 09:05:24 -07:00
brave-builds ffa53d275d 1.92.48 2026-05-11 16:03:32 +00:00
vadims 21726eac1f [Android] Add browser history removal to the existing Shred feature (#36191)
Implemented backend part for history cleaning to extend the Shred
feature.

Resolves: https://github.com/brave/brave-browser/issues/55039

---------

Signed-off-by: Vadym Struts <vstruts@brave.com>
2026-05-11 17:53:45 +02:00
r0hit0303 de712e73ee [query-filter] Add query filter test helper (#36318)
This changes adds a new test helper to allow populating the query filter rules when the query filter component is enabled. This helps outside test clients that relied on hardcoded rules previously to test query stripping functionality. The hardcoded rules are going away once the `QueryFilterComponent` flag is enabled. 

This change updates the two existing test suites to support the change when we migrate to the new query filter component. Please see the larger [change](https://github.com/brave/brave-core/pull/36222) to see the full integration. 

Note that for now the test suites would *continue* to test the hardcoded rules despite this change as the actual query filtering is not yet supported. However, the plan is that once we do, these test suites would not need to be modified and they will automatically tests the new behaviour.

Resolves https://github.com/brave/brave-browser/issues/55418
2026-05-11 16:35:42 +01:00
Agustín RuizandCursor e0f6e9015b Respect vertical tabs on right for toggle placement (#36301)
* Respect vertical tabs on right for toggle placement

Add logic to position the vertical-tab-toggle button according to the brave_tabs::kVerticalTabsOnRight preference. Introduces BraveToolbarView::UpdateVerticalTabTogglePlacement(), wires up a pref listener (vertical_tabs_on_right_) and calls the updater during Init and when the pref changes. The method reorders the toggle within the location bar container to sit just left of the app menu when tabs are on the right, or just left of the back button when tabs are on the left, with guards for display mode and missing children. Adds a browser test to verify the toggle moves when the pref is flipped.

* Update brave_toolbar_view_browsertest.cc

* Address review feedback: CS-021, CS-025, TI-014

* Update brave_toolbar_view.cc

* Pin vertical-tab toggle to index 0 when tabs on the left

SimonHong feedback on PR #36301: avoid deriving placement from back
button index so future pinning/upstream ordering cannot invalidate
CHECK(GetIndexOf(back_)) or move the toggle unexpectedly.

Browser test asserts kVerticalTabsOnRight=false keeps toggle at child 0.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Mirror vertical-tab toggle placement in RTL

The vertical tab strip is positioned by physical coordinates and ignores
UI direction, but the toolbar container uses a horizontal FlexLayout that
mirrors child indices in RTL. With `--force-ui-direction=rtl`, the toggle
ended up on the opposite physical side from the strip.

Invert the placement choice when `base::i18n::IsRTL()`:
  on_right XOR RTL == true  -> trailing slot (just before app menu)
  on_right XOR RTL == false -> leading slot (child index 0)

Adds a `BraveToolbarViewRTLTest` fixture that appends
`--force-ui-direction=rtl` and asserts the inverted indices for both pref
states.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-11 10:51:10 -03:00
r0hit0303 36caab1e68 [query-filter] Add functionality to extract blocklisted params from rules for spec (#36316)
Adds a new helper class to facilitate extractions of all blocked listed params from a given rule set for a spec. This change is a smaller change of https://github.com/brave/brave-core/pull/36222 where it specifies more details on how the helper method would be used one the client side. 

This change also adds units tests for the same. 

Resolves https://github.com/brave/brave-browser/issues/55412
2026-05-11 14:21:37 +01:00
Pavel Beloborodov 4f5013e9d2 Show an error message instead of an empty email aliases list in case of an error. (#36168)
* Added error message.
2026-05-11 09:08:53 -04:00
brave-builds 248596513a 1.92.47 2026-05-11 12:33:12 +00:00
cdesouza-chromium beb58398e9 [git-cr] Make commit its own module (#36317)
This change makes the code for `git-cr` tools more modular. This will
help with test correctness ultimately, as now we are depending fully on
`Repository` for paths, specially install paths, which eliminates a
recurring issue where tests do seem to interfere with the current
install path `brave-core`.
2026-05-11 13:12:29 +01:00
brave-builds 1c36cb7869 1.92.46 2026-05-11 12:03:26 +00:00
cdesouza-chromium 9adf57c14b [brockit] Test coverage for Rebase (#36315)
This pr introduces full test coverage for `Rebase`, including
integration tests, in preparation for `rebase --continue`.
2026-05-11 12:10:59 +01:00
cdesouza-chromium 44ee9ede93 [brockit] Make Repository.py paths relative (#36307)
This PR changes how we structure path resolution around all the
utilities under `tools/cr` to be truly relative, with all paths
ultimately being derived from the path for the brave repository. This
should make testing in sandboxing more reliable, as we can just rely on
the CWD to override behaviour in a consistent way across multiple tools,
even if they are being launched as a subprocess, which is not possible
when using mock patching for global constants.

This change eleminates the need for `FakeChromiumSrc` as its main use
was to patch `Repository` to use the path of the `tempdir` provided by
`FakeChromiumRepo`.

After this change, all should stay the same, however this change also
does away with `BRAVE_CORE_PATH`, and replaces it with
`repository.brave.root` as a more idiomatic way to indicate a
`brave-core`'s root path.

The main side effect of this change is that now both `brockt`, and
`plaster` should just work by being called anywhere under `brave/`.

Resolves https://github.com/brave/brave-browser/issues/55404
2026-05-11 10:15:00 +01:00
Anton Paymyshev 24546948cf [Wallet] Disable wallet autolock in tests to reduce flakiness (#36270) 2026-05-11 14:14:18 +07:00
Sangwoo KoandClaudio DeSouza 87ce902114 Try to minimize plaster related to PageActionController/Model (#36267)
Minimize plaster related to PageActionController/Model

In order to make patching strategy more robust agains upstream chagnes,
we should prefer `chromium_src override without #define macro' to
'complex plaster'.

Co-authored-by: Claudio DeSouza <cdesouza@brave.com>
2026-05-11 12:31:27 +09:00
Anton Paymyshev 180de92d08 Wallet notifications (#35992) 2026-05-11 09:55:12 +07:00
Anton Paymyshev b149d70e12 [Wallet] Add result checks to some calls to KeyringService (#36275) 2026-05-11 09:54:39 +07:00
Jay Harris ae4412c21a [AI Chat]: Add inline mentions of attachments (#32717) 2026-05-11 14:33:51 +12:00
brave-builds 573582da02 1.92.45 2026-05-11 00:04:38 +00:00
Francois Marier 5d3d857540 Look for common domain typos in Accounts email (#36068) 2026-05-10 15:26:22 -07:00
Max Karolinskiy 85e1860bdd Removes importing payment info from Chrome profile importer (#36273)
Importing payment info requries use of os crypt, which in cr149 will
be async only and that is much more involved when used in an utility
process and requires a different key. We already removed importing
Chrome passwords in the past so this is just a continuation of that
decision.

Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/a4cab4afb48c24f4557ec6dc7cbd1bd192fb65b4

commit a4cab4afb48c24f4557ec6dc7cbd1bd192fb65b4
Author: Tom Anderson <thomasanderson@chromium.org>
Date:   Fri Apr 17 15:10:45 2026 -0700

    [OSCrypt] Remove sync backend

    R=thestig

    Fixed: 447372315
2026-05-09 15:10:08 -04:00
Matthew Sbar 52eadd0390 Fix flags missing spaces (#36252) 2026-05-09 00:19:44 -07:00
brave-builds 265906f4bb 1.92.44 2026-05-09 06:14:48 +00:00
brave-builds 9b0748c70e 1.92.43 2026-05-09 01:42:42 +00:00
brave-builds 00273960e3 1.92.42 2026-05-09 01:15:18 +00:00
Serg 603ff3cefd [Ads][Origin] Defer ads service start until policy service is initialized (#36151)
* [Ads][Origin] Defer ads service start until policy service is initialized

The ads gate reads `kDisabledByPolicy` via `IsManagedPreference`, so if
`AdsServiceImpl` is constructed before the BraveOrigin policy bundle has
been merged into the managed pref store, the gate evaluates as unmanaged
and the service starts. NTT ads can then serve despite
`BraveRewardsDisabled` being active.

Defer the initial `MaybeStartBatAdsService()` call until
`PolicyService::IsInitializationComplete(POLICY_DOMAIN_CHROME)` is true.
Adds `[AdsGate]` diagnostics behind the existing "Verbose Logs for
Ad-Rewards" QA toggle.

Resolves: https://github.com/brave/brave-browser/issues/55228
2026-05-08 20:13:47 -04:00