78827 Commits
Author SHA1 Message Date
cypt4 09df78d4d6 [Polkadot] Add asset hub westend\polkadot networks under flag. (#36647)
* [Polkadot] Add asset hub westend\polkadot networks under flag.
This PR  adds 2 additional asset hun networks to network_manager that are
available under the feature flag along with captured tx data.
2026-06-04 20:07:10 +07:00
brave-builds d5dc7dd8a7 1.93.31 2026-06-04 12:33:31 +00:00
brave-builds 762f4e9db5 1.93.30 2026-06-04 12:03:55 +00:00
Anton P 5cffd65f7e [Wallet] Fix renderer crash after accessing ethereum._metamask (#36979) 2026-06-04 12:24:10 +02:00
Jay Harris f58305f3a0 [Bookmarks]: Update bookmark icons in the sidebar (#36950)
* [bookmarks]: Change new folder icon

* [bookmarks]: Change folder icons

* [bookmarks]: Change expand/collapse carat

* [bookmarks]: Fix back button

* [bookmarks]: Footer

* [bookmarks]: Replace add button icon

* [bookmarks]: Fix folder fill

* [bookmarks]: Don't register CE upstream
2026-06-04 07:10:23 +01:00
brave-builds e4d996bb99 1.93.29 2026-06-04 04:01:58 +00:00
Kamil Jozwiak 8e37af1855 Upgrade from Chromium 149.0.7827.54 to Chromium 149.0.7827.59 (#36968)
Resolves https://github.com/brave/brave-browser/issues/56073
2026-06-03 23:55:32 -04:00
Anthony Tseng 3461528ff6 [AI Chat] Add semantic history search tool for Leo (#36385)
* [AI Chat] Add HistorySearchTool exposing local history embeddings

Adds a self-executing Tool subclass that wraps
HistoryEmbeddingsService::Search() so the Leo assistant can semantically
search the user's local browsing history. Returns matches as a JSON
TextContentBlock containing title, URL, snippet, and last visit time.

The tool is not yet wired into any provider; that follows in a separate
commit so this change can be reviewed in isolation.

* [AI Chat] Add unit tests for HistorySearchTool

Covers the input validation and JSON serialization paths exercised by
HistorySearchTool. The full Search() flow is intentionally not faked
here -- HistoryEmbeddingsService has a heavyweight constructor and
faking it pulls in too many dependencies for a tool unit test; the
JSON formatter is exposed via internal:: so it can be tested directly.

* [AI Chat] Wire HistorySearchTool into BrowserToolProvider

The tool is created when history embeddings is enabled for the active
profile (via IsHistoryEmbeddingsEnabledForProfile, which checks the
flag and per-profile eligibility) and surfaced through GetTools().

* [AI Chat] Permit anchors for URLs returned by client-side tools

For Leo models, MarkdownRenderer strips any anchor whose href isn't in the
entry's allowedLinks list -- which today is populated only from the
sourcesEvent that web search emits. Client-side tools (e.g. semantic
history search) had no way to surface trusted URLs, so any [text](url) the
assistant wrote referencing tool results was demoted to a <span>.

Add a sidechannel via the existing ToolArtifact: a new artifact type
"trusted_links" carrying a JSON array of HTTPS URL strings. Conversation
entries flatten these into allowedLinks for the whole assistant group, so
URLs returned by a tool call (which lives in a separate assistant entry
from the follow-up response text) permit anchors in the response.

The artifact is not rendered visually -- it's purely a trust-list. No
mojom struct change, no LLM payload pollution, no "Sources" panel.

HistorySearchTool emits the artifact populated from the URLs in its JSON
results.

* [AI Chat] Add browser test for HistorySearchTool dispatch

Verifies the end-to-end path that unit tests can't reach: the mocked
engine emits a semantic_history_search tool_use event, ConversationHandler
dispatches to the real HistorySearchTool, the tool forwards the parsed
arguments to a fake HistoryEmbeddingsSearch, and the JSON-serialized
result flows back into the conversation history.

A second case exercises malformed args: the tool surfaces an error and
the search service is never called.

Uses the existing AIChatConversationUIBrowserTestBase helper.
2026-06-04 04:04:09 +01:00
Max Karolinskiy bcd925ed85 Enable Bosnian to be used as a UI language. (#36861)
* Enable Bosnian to be used as the UI language.

* Pulls latest Bosnian l10n files from Crowdin.

* Updates origin l10n for Bosnian.
2026-06-03 21:13:27 -04:00
brave-builds 3a65763d6e 1.93.28 2026-06-04 00:35:48 +00:00
brave-builds 02def37284 1.93.27 2026-06-04 00:03:36 +00:00
Brian R. Bondy bc87b51379 Exempt WebUI and trivial UI from ARCH-062 CUJ test best practice (#36956) 2026-06-03 19:38:26 -04:00
Serg 3c40cb1d47 [Android][Origin] Reclaim toolbar space when the rewards icon is hidden on tablet (#36975)
On tablet the rewards (BAT) icon lives in the brave_toolbar row, a
wrap_content LinearLayout that caches its measured width. When the icon
is hidden from onMeasure (e.g. when Brave Origin disables rewards), the
implicit requestLayout() from setVisibility() is dropped because the
toolbar is already mid-layout, so the row keeps its old width and the
weighted location bar never reclaims the freed space, leaving a gap
until a device rotation forces a fresh layout.

Route all rewards-slot visibility changes through a helper that, on an
actual change on tablet, re-requests layout on the rewards view itself
(so its row re-measures) off the measure pass, and refreshes the cached
tablet toolbar snapshot.

Resolves: https://github.com/brave/brave-browser/issues/56036
2026-06-03 19:15:36 -04:00
Eli Hini 58161eaead [iOS] Brave Playlist Exclusions component added (#36545)
Plumbing for BravePlaylistExclusions component. Installer and registrar to follow suite

Expose PlaylistExclusionsAPI as a protocol with a private impl so Swift can mock it, and add BravePlaylistExclusions.sharedInstance instead of exposing a wrapper on BraveCoreMain. 
Register the public header directly in ios/BUILD.gn and remove unused playlist deps from ios/app and ios/browser/web.

Signed-off-by: Eli Hini <8249954+EliHini@users.noreply.github.com>
2026-06-03 15:58:59 -07:00
Claudio DeSouza db8756987b Update patches from Chromium 149.0.7827.54 to Chromium 149.0.7827.59. 2026-06-03 18:49:18 -04:00
Claudio DeSouza 4e22eef752 Update from Chromium 149.0.7827.54 to Chromium 149.0.7827.59. 2026-06-03 18:49:18 -04:00
Nuo Xu bc3d345de4 [iOS][Wallet]: fix wallet wrong import (#36973)
fix wallet wrong import
2026-06-03 18:48:31 -04:00
Kyle Hickinson 6c47850c0b [iOS] Add support for randomized message handlers in JavaScriptFeatures (#36371)
This change adds a helper class `RandomizedMessageHandlerName` that can be used in JavaScriptFeature's to support randomizing message handler names. The randomized message handler is a UUIDv4 which is injected with the script itself via placeholder replacement.
2026-06-03 15:16:40 -04:00
r0hit0303 69c58c7b7c [Tests] Disable failing webgpu tests on Windows (#36963)
Windows doesn't seem to have support for webgpu adapter. So
we disable these tests for them.

Resolves https://github.com/brave/brave-browser/issues/56063, https://github.com/brave/brave-browser/issues/56064, https://github.com/brave/brave-browser/issues/56065, https://github.com/brave/brave-browser/issues/56066
2026-06-03 20:38:29 +02:00
Szilard Szaloki 73cd04e79d Account: remove alert from <brave-account-forgot-password-dialog>. (#36952) 2026-06-03 10:45:25 -07:00
samartnik 459ec2cff8 [Android] New Nala icons: copy, edit, share, microphone (#36957)
* [Android] New Nala icons: copy, edit, share, microphone

Icon ic_share_white_24dp is png in the upstream, so for now we have to use png format as well.

* PNG optimisation
2026-06-03 13:22:55 -04:00
Nuo Xu 6615d013d8 [iOS][Wallet] Clear window.localStorage from swift side when wallet is reset (#36777)
* clear window.localStorage from swift side when wallet is reset

* Clear WebUI localStorage on wallet reset via hidden WKWebView

* fix gn check

* address review(kyle) feedback

refactor WebUI localStorage clear to use SequenceBound
Replace the static global objc object and GCD dispatch with a WalletWebviewRunner C++ class held via base::SequenceBound, ensuring correct per-profile lifetime and UI thread enforcement via DCHECK_CURRENTLY_ON.

* address review(stephen) feedback

update func name with more clarity
2026-06-03 12:53:20 -04:00
Pete Miller 2b3895bd8e [AI Chat] Move HandoffButton lower and make it smaller (plaster version) (#36553)
* [AI Chat] Move HandoffButton lower and make it smaller

Brave's URL bar is centered, so it makes the URL unreadable in more cases than upstream. And Brave's AI Chat conversation UI has large buttons for pausing the tasks, which perform the same function.

- Fix https://github.com/brave/brave-browser/issues/51384
2026-06-03 09:25:31 -07:00
brave-builds 6ee3b85080 1.93.26 2026-06-03 16:03:13 +00:00
Kevin Smith 56aa81b9f8 [CompactMode] Add a toggle in settings (#36616) 2026-06-03 11:56:55 -04:00
Brian R. Bondy f31799c3c6 Skip rewards grant .env asserts for Brave Origin builds (#36938)
Brave Origin builds disable rewards (enable_brave_rewards =
!is_brave_origin_branded), so the rewards_grant_* endpoints are unused
and should not be required in .env.
2026-06-03 11:10:24 -04:00
Michael Herrmann caca561b2a Rewrite .install.sh.toml to .install.sh.yaml (#36955) 2026-06-03 15:54:51 +02:00
Kyle Hickinson 798e46c6a7 [iOS] Add methods for sending tokenized prompts to the browser (#36855)
This adds an additional tokenized method `sendWebKitMessageSynchronously` alongside `sendTokenizedWebKitMessage{WithReply}` that uses `window.prompt` from SafeBuiltins.
2026-06-03 09:18:29 -04:00
brave-builds 9aa57e5a6e 1.93.25 2026-06-03 12:33:14 +00:00
brave-builds f8cdea6c02 1.93.24 2026-06-03 12:03:26 +00:00
r0hit0303 2bc2676507 Add a new WebGPU webcompat content settings type (#36923)
This change adds a new WebGPU web-compat content settings type. This would allow showing a brand new "Webgpu" toggle inside the Brave shields > "Block fingerprinting" secondary UI. 

This change also connects the current webgpu scrubbing to this new content setting type which was webgl before. This allows the users to turn on/off the fingerprinting protections selectively on WebGPU APIs w/o changing WebGL. 

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

* update
2026-06-03 13:01:13 +02:00
Anton P a08004780f Move wallet urls out from /b/c/constants (#36875)
Cleanup wallet stuff in /b/c/constants
2026-06-03 17:22:26 +07:00
Anton P b57858103c [Wallet] Properly cleanup js providers when no longer needed (#36816) 2026-06-03 17:21:32 +07:00
r0hit0303 e350982a37 [farbling] Fix webgpu tests and scrubbing issue (#36850)
This change:
-  Fixed a bug related with WebGPU adapter info.
- Updates the existing WebGPU browser tests to setup the WebGPU environment correctly.
- The tests are disabled for win x64 which doesn't have support for WebGPU adapter. 
- New tests are added to check we don't scrub if the kEnableWebGPUDeveloperFeatures feature flag was enabled.

 Related brave/brave-browser#55677
2026-06-03 12:04:59 +02:00
cypt4 aebe762e97 [Polkadot] Parse assets pallet chain metadata. (#36419)
* [Polkadot] Parse assets pallet chain metadata.
Check whether assets pallet exists and parse transfer calls.
Resolves https://github.com/brave/brave-browser/issues/55503
2026-06-03 15:37:02 +07:00
Aleksei Khoroshilov f9ea04c1a5 Show small accent icon earlier to show usable info on a tab. (#36928) 2026-06-03 14:13:54 +07:00
Pete Miller 68be1396f1 [AI Chat] Tab Management Tool - close action (#36894)
* [AI Chat] Tab Management Tool - close action

Adds the "close" action to the tab management tool, reimplemented on top
of the refactored handlers. Closing is asynchronous (beforeunload handlers
can delay WebContents destruction), so a self-owned TabsClosedWaiter waits
for the tabs to be destroyed, or a fallback timeout, before reporting the
resulting tab list. Duplicate tab_ids are de-duplicated and indices are
re-queried per close to avoid acting on a stale or destroyed WebContents.
2026-06-03 00:06:01 -07:00
Mikhail 7994b388ea [perf] Update example.com and youtube.com WPRs (#36754)
The PR updates some WPR files (contain pre-recorded versions of sites) used in perf tests.
2026-06-03 06:49:59 +02:00
Szilard Szaloki 57c978e8ae Account: parameterize verification email resend/cancel by intent (#36891) 2026-06-02 21:04:00 -06:00
Szilard Szaloki def0d869d0 Account: fixes <brave-account-email-input> styling (#36888) 2026-06-03 01:38:23 +00:00
Nuo Xu 5f7cd7498f [iOS] Stop feeding HistorySearchOptions with begin and end date (#36937)
stop feeding HistorySearchOptions with begin and end date
2026-06-02 21:37:12 -04:00
brave-builds 7e453273a9 1.93.23 2026-06-03 01:31:24 +00:00
Szilard Szaloki 1167e2da79 Account: remove Base32 validation from <brave-account-otp-input>. (#36949) 2026-06-03 03:10:54 +02:00
brave-builds bd7e843703 1.93.22 2026-06-03 00:03:15 +00:00
Darnell Andries e768b9521d [AI Chat] Add search support for NEAR E2EE (#36751) 2026-06-03 01:52:43 +02:00
Pete Miller ad9ed49e7e [AIChat] Tab Management Tool actions (#33987)
* [AIChat] Tab Management Tool actions

Implements tab organizing actions. Does not implement close action which, due to complexity, will be submitted separately
2026-06-02 16:33:30 -07:00
brave-builds 43824122a1 1.93.21 2026-06-02 23:04:16 +00:00
Simon Hong 9ad657024d Fixed download toolbar icon regressions with insecure file (#36944)
Resolves brave/brave-browser#55816

This ensures UpdateIcon_BraveImpl is called at the point where the upstream has already updated the
image, rather than at the end of the function where it would be skipped by early returns.

Regressions from #35750
TEST=DownloadToolbarInsecureIconTest.InsecureDownloadIcon
2026-06-03 07:54:57 +09:00
Jay Harris 3bd308d107 [Lit]: Update docs with example of adding a reactive property (#36913) 2026-06-03 10:08:56 +12:00
brave-buildsandbrave-builds-ro 1fd80918a9 Roll perf profiles update (update-perf-profile-2026-06-02-16-16) (#36934)
* Update perf profile brave-typical-mac using v1.93.10
* Update perf profile brave-typical-android using v1.93.19
* Update perf profile brave-typical-win using v1.93.19
* Update perf profile chrome-typical-mac using v1.93.10
* Update perf profile chrome-typical-android using v1.93.19
* Update perf profile chrome-typical-win using v1.93.19
---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2026-06-02 21:57:02 +00:00