Commit Graph
78296 Commits
Author SHA1 Message Date
samartnik cd9dbfdef5 [Android] Unify switch style across the app (#36652) 2026-05-22 16:35:58 +01:00
Simone Arpe cc3b0972b4 Early return when activity is finishing or destroyed (#36650) 2026-05-22 17:24:56 +02:00
Anton Paymyshev 2733b8b5c6 [Wallet] Remove deprecated p3a usage metrics (#36444) 2026-05-22 22:24:32 +07:00
cdesouza-chromium ffa95ab18c [best-practices] Simple fixes to the 🩹 best practices (#36653)
This document was mentioning `plaster` keys with the wrong name.
2026-05-22 15:21:13 +01:00
cdesouza-chromium a651e03a79 [plaster] Introducing a 🩹 YAML frontend (#36651)
This PR introduces the YAML frontend for plaster that is meant to
eventually become the only frontend, once all `.toml` Plaster files are
migrated.

This change covers all places where the assumption about `.toml` files
was being used, inclusing `brockit`, and `git-cr` tools.

Most of the code that should be deleted in the future is well guarded
with comments leading back to the issue tracking, so the TOML parser can
be dropped eventually.

With this change, a dependency to `pyyaml` has been introduced. This
dependency has wheels provided by `vpython`, which is already the
expected python runtime for Plaster.

 - Rationale for this change

We have experimented at length with `.toml` files, in order to
understand some of the shortcomings they have that would be addressed
with `.yaml` files.

 * `prettier` offers YAML formatting out-of-the-box. On the other hand,
   formatters for TOML files are not easy to find, as both `prettier`
   and `vpython` have their own challanges with the current options
 * YAML's sytanx works better with codeblocks, as it doesn't require
   quoting. This makes the content seen less noisy. Looking on some of
   the migrated plasters, the YAML substitutions look more readable.
 * YAML has better sytanx highlight support in some editors.

Bug: https://github.com/brave/brave-browser/issues/55738
2026-05-22 15:20:51 +01:00
Aleksei Khoroshilov ff224e75fb Remove constexpr from struct initialization in test. (#36654) 2026-05-22 16:09:16 +02:00
samartnik 294e2d6f40 [Android] Remove text color overrides (#36646)
With new Nala color palette it is no longer necessary.
2026-05-22 09:31:44 -04:00
Douglas Daniel 8e5b3f4e75 [Wallet]: Show Sign Warning for all EIP-712 Transactions (#36619)
Will now display a Sign Warning for all EIP-712 transactions.
2026-05-22 08:21:03 -05:00
brave-builds 4f4777d51b 1.92.90 2026-05-22 12:33:05 +00:00
brave-builds 05b881f197 1.92.89 2026-05-22 12:03:07 +00:00
Serg 4078292ec0 [Origin] Honor BraveRewardsDisabled policy when starting Rewards engine (#36629)
* [Origin] Honor BraveRewardsDisabled policy when starting Rewards engine

Defer `RewardsServiceImpl::CheckPreferences()` -- the gate that decides
whether to spin up the Rewards engine process -- behind a
`brave_policy::PolicyInitializationWaiter` so that the managed
`brave_rewards::prefs::kDisabledByPolicy` pref is visible by the time the
gate evaluates. Without this, `Init()` runs before the policy bundle has
been merged into the managed pref store and the engine starts -- pinging
`/v1/parameters` and `/v4/wallets/...` -- even when Brave Origin has
disabled Rewards via `BraveRewardsDisabled`.

Resolves: https://github.com/brave/brave-browser/issues/55696
2026-05-22 07:50:44 -04:00
cypt4 a6baf155f0 Update polkadot keyring to accept custom u64 rng seed for testing. (#36609)
It was using 0 before, so allow to setup custom one.
2026-05-22 18:41:35 +07:00
cdesouza-chromium 0ac0947704 [toolchain] Rust WASM builder tomllib fallback (#36637)
This PR introduces some fallback parsing for `tomllib` use, when running
this script in a machine with a python version older than `3.11`. This
will be necessary for the time being with the Linux node still using
Python 3.10.
2026-05-22 12:24:50 +01:00
Aleksei Khoroshilov 3276b0fb30 Remove contained site data on site data removal. (#36600)
* Remove contained site data on site data removal.

* Review fixes.

* Add few comments.
2026-05-22 11:21:04 +01:00
Aleksei Khoroshilov 050ac1649b Remove TA-007, it was an upstream bug. (#36644)
Remove outdated best practice. It was an upstream bug.

https://issues.chromium.org/issues/482060882
2026-05-22 16:33:44 +07:00
Simon Hong 57c3e7194b Fix Windows caption button container height calc (#36601)
On Windows, BrowserFrameViewWin refers ClientFrameElementInfo.toolbar_minimum_height
when calculating caption button container's height.

Resolves brave/brave-browser#53074
2026-05-22 10:39:50 +09:00
Eli Hini 5f85a96b34 [iOS]Tag Brave Search from Shortcuts widget with source=ios-widget (#36039)
Signed-off-by: Eli Hini <8249954+EliHini@users.noreply.github.com>
2026-05-22 01:48:06 +01:00
Alex 29e1edc7e4 [VPN] Update server-status VPN API endpoint (#36627)
On Mac, we use a server-status endpoint for OnDemand VPN functionality.
The change upgrades the old (current) API `/vpnsrv/api/server-status`,
to the new one: `/api/v1.3/server-status`. The API responses are
claimed by Guardian to be identical, zero behavioural change.
2026-05-21 20:41:23 -04:00
brave-builds 6860dfbbd4 1.92.88 2026-05-22 00:03:29 +00:00
Jay Harris 34204541c8 [AI Chat]: Infer isGlobalPanel from isStandalone (#36520) 2026-05-22 00:44:14 +01:00
samartnik 7c8ed276c9 [Android] Fix for background playback on Spotify (#36632)
* [Android] Fix for background playback on Spotify

* [Review] Combine hosts for background playback
2026-05-21 23:01:54 +01:00
cdesouza-chromium 348b19ce7d [toolchain] Rust WASM toolchain builder uses llvm-ar.exe (#36633)
On Windows, we have to manually correct the default the `ar`
`config.toml` value to `llvm-ar.exe`, as Windows defaults as a normal
Windows build uses `llvm-lib.exe`.
2026-05-21 21:53:01 +01:00
Kyle Hickinson c51ef668da [iOS] [Origin] Dont show sponsored images when rewards is unavailable (#36613)
This also hides the option from the NTP settings page
2026-05-21 15:36:45 -04:00
Christian Mazakas 4a6eadb36e [Polkadot] [Wallet] add Polkadot flag (#36254)
add Polkadot flag
2026-05-21 12:34:29 -07:00
Aleksei Seren bb3c4fe724 Remove Brave News inline content ads dead code on Android (#36539)
The Brave News inline content ads pipeline is already disabled via
https://github.com/brave/brave-core/pull/32359. This PR removes the
remaining inline content ads Android code and mojom code that no longer
has any effect.
2026-05-21 14:16:24 -05:00
cdesouza-chromium 6e5477de72 [toolchain] Fix rust WASM builder picking up clang-cl.exe (#36628)
On Windows, we need to make sure we are picking up the correct C
compiler for the WASM build, and as this value was not being provided in
the template, `clang-cl.exe` was being picked up.

This PR generates a fuller stanza in the template for the WASM build,
that replicates the host one, but makes sure to tweak this necessary
value for windows. It is also of notice that we keep the linker whatever
is the default to be picked up.
2026-05-21 20:12:33 +01:00
Aleksei Seren f0d5c3f365 [ads] Fix AdsService init race in ViewCounterService (#36591)
Fix AdsService init race in ViewCounterService

If `AdsService` finishes initialization before `ViewCounterService`
registers as an observer, the initialization callback never fires
and the sponsored images component is never registered. Detect this
condition after registering the observer and call the initialization
handler explicitly when AdsService is already initialized.
2026-05-21 18:18:44 +01:00
cdesouza-chromium b4fa116f87 [toolchain] Checkout the tag manually on the rust WASM builder (#36615)
This PR changes how the checkout works in the rust toolchain WASM
builder, to avoid the use of `gclient sync -r {ref}`. It is not clear if
we are having issues with it exactly, but the Windows pipeline keeps
hanging, and this particular long standing `gclient` issue has caused
pipeline issues before.

This PR also follows up on the work done by the previous one, and
updates all the other scripts to output the `stderr` the same way the
rust builder is doing.

Bug: https://github.com/brave/brave-browser/issues/44921
2026-05-21 18:00:40 +01:00
cdesouza-chromium 3213961ae5 [cr150][brockit] Fix fixup! block message parsing (#36610)
[cr150][brockit] Fix handling of `fixup!` block messages

This PR fixes how we are handling the block messages for `fixup!`, as
the parsing for them was always assuming that they would receive the
label `will be skipped:` for not having any message in them, but
actually that doesn't appear to be the case with every `fixup!`. With
this change, `fixup!` blocks that have no message are now discarded too.

Bug: https://github.com/brave/brave-browser/issues/55466
2026-05-21 17:48:00 +01:00
brave-builds 4a42f1e6c5 1.92.87 2026-05-21 16:03:17 +00:00
Michael Herrmann 2ce8e7206e Add more Omaha 4 macOS update failure logging (#36607) 2026-05-21 16:30:12 +01:00
cdesouza-chromium f64a6cba89 [cr150][brockit] Rebase-v2 terminal needs to be interactive (#36608)
This PR changes our `rebase --interactive` call to be use `terminal.run`
with `interactive=True`, so we don't capture the output of that command.
This will generate noise when running `brockit rebase`, however this is
necessary for the user to be able to use the editor opened due to
`EditorRecoverableFailure`.

There are also changes to `terminal`, to make sure we stop producing any
type of status update while `interactive=True` commands are ongoing.

Bug: https://github.com/brave/brave-browser/issues/55466
2026-05-21 16:23:27 +01:00
cdesouza-chromium 1da5e1ede6 [include-what-you-use] //components/brave_wallet/common/ fixes (#36515)
This is an experimental pass of `include-what-you-use`.

Bug: https://github.com/brave/brave-browser/issues/42212
2026-05-21 15:56:20 +01:00
Aleksei Seren 756e06555c Remove Brave News promoted articles dead code on Desktop (#36582)
The Brave News `Promoted Articles` ads pipeline is already disabled via
https://github.com/brave/brave-core/pull/32359.
This PR removes the remaining Desktop frontend code and portions of the mojom
code that no longer had any effect. The remaining mojom code is still required for
Android builds and will be removed in a follow-up when the dead code for Brave
News promoted articles on Android is cleaned up.
2026-05-21 09:51:00 -05:00
samartnik 120f27059e [Android] Exclude auto-discovered search engines from quick search engines (#36589)
* [Android] Exclude auto-discovered search engines from quick search engines

* [Review] Added robolectric tests
2026-05-21 15:23:05 +01:00
brave-builds f492ba3fca 1.92.86 2026-05-21 12:33:30 +00:00
cdesouza-chromium 9458d597bc [toolchain] Allow stderr through in the rust builder (#36604)
This PR changes the function we use to run commands in the rust builder
to always allow `stderr` through. We are also adding a log whenever the
script is launched to indicate the value of `GIT_CACHE_PATH`.
2026-05-21 13:16:05 +01:00
brave-builds fed225e282 1.92.85 2026-05-21 12:03:30 +00:00
Simon Hong 75bae3ea9e Refactor BraveMultiContentsView inset zeroing (#36598)
Resolves https://github.com/brave/brave-browser/issues/55710

This PR doesn't change any behavior. Just simple refactoring.

`kSplitViewContentInset` is now referenced both inside and outside `MultiContentsView`
(as of cr149). The previous approach of zeroing `start_contents_view_inset_` /
`end_contents_view_inset_` in the `BraveMultiContentsView` constructor only covered the
inset fields, not the constant itself.

This PR overrides `kSplitViewContentInset = 0` via a `chromium_src` macro, so any usage
site — inside or outside `MultiContentsView` — sees zero. Brave controls split-view
padding through its own rounded corners feature, not via Chromium's default 8px insets.
 
## Changes
- Remove the explicit inset zeroing from `BraveMultiContentsView` constructor
- Add `chromium_src` constant override for `kSplitViewContentInset = 0`
- Add inset checks to `BraveMultiContentsViewTest` verifying the constant is 0 and content panes fill the full height
2026-05-21 19:39:52 +09:00
r0hit0303 eefcc6fdec [query-filter] Enable query filter component integration (#36222)
This change updates the existing client to now allow stripping the query parameters with the newly added query filter component. 

This change also enables the `QueryFilterComponent` flag **enabled** by default and removes all references to the old code. This means that turning off the flag would also turn off the whole query filter feature explicitly as discussed [here](https://github.com/brave/brave-core/pull/36222#discussion_r3197754497). 

Manual testing [video](https://github.com/user-attachments/assets/22df2285-a077-4881-be96-22a38d29e180).

Resolves https://github.com/brave/brave-browser/issues/55305
2026-05-21 12:37:41 +02:00
cypt4 7f4e6de0b5 Support Brave Wallet accounts hiding. (#35375)
* This PR extends KeyringService with new functions to manage hidden accounts.
And adds corresponding UI to the wallet.
Hidden accounts are stored in a separate preference.
Default account can't be hidden.
Resolves https://github.com/brave/brave-browser/issues/19761
2026-05-21 17:29:14 +07:00
vadims 6af6e79b8d [PSST] Add consent dialog UI (#36529)
Added failed consent dialog state to handle cases where applying privacy
settings fails midway through the process and async handling
to the policy script, along with additional browser tests to cover it.

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

Signed-off-by: Vadym Struts <vstruts@brave.com>
2026-05-21 11:11:50 +02:00
Anton Paymyshev 54a9d48e67 [Wallet] Remove SolanaAddress default constructor (#36528)
* [Wallet] Remove SolanaAddress default constructor

* fix ci
2026-05-21 15:51:15 +07:00
Darnell Andries d7eb753b52 [AI Chat] Add ObliviousHttpAPIClient (#36295)
* [AI Chat] Add `ObliviousHttpAPIClient`

* Address PR feedback

* Add model key/near verification status in response

* Add encryption feature param for NEAR model feature
2026-05-20 20:39:06 -07:00
Kyle Hickinson 6f8c76c892 [iOS] [Origin] Initialize policy manager before profile creation (#36586)
This fixes a deadlock in which the Profile never completes its initialization so the app never shows the browser window
2026-05-20 23:09:40 -04:00
Anthony Tseng d0cebb06d7 Drop WebContents → BindCallback registry on BravePassageEmbeddingsSevice (#36458)
Drop WebContents → BindCallback registry on BravePassageEmbeddingsService

There was ever at most one active embedder/BG WebContents pair, so the
static map was 0- or 1-entry overhead. Replace it with a direct
forwarder:

* BravePassageEmbeddingsService::BindLocalAIReceiver hands a
  PendingReceiver<LocalAIService> to batch_embedder_ if alive.
* BravePassageEmbeddingsServiceController exposes the same as an
  instance method, accessible via Get().
* UntrustedLocalAIUI::BindInterface routes through the controller.

Eliminates SetBindCallbackForWebContents (only producer call site went
away) and RemoveBindCallbackForWebContents (was unused in production —
the registry leaked one entry per BG WebContents lifecycle).
2026-05-21 03:06:01 +01:00
Darnell Andries 3acf28a77f [AI Chat] Prepare EngineConsumerOAIRemote/OAIAPIClient for OHTTP support (#36294)
* [AI Chat] Prepare `EngineConsumerOAIRemote`/`OAIAPIClient` for OHTTP support

* Fix iOS build errors
2026-05-21 02:27:53 +01:00
Jay Harris 29ee48cd3e [AI Chat]: Use module output (#36593) 2026-05-21 12:56:16 +12:00
brave-builds 49292983cc 1.92.84 2026-05-21 00:03:28 +00:00
AlexeyBarabash 0abd84da8d [Sync] Forbid screenshots of QR code / sync words (#36592)
Resolves https://github.com/brave/brave-browser/issues/55701
2026-05-21 00:32:57 +01:00