Commit Graph
65401 Commits
Author SHA1 Message Date
Jocelyn Liu efcb1df7c6 Remove enable_ai_chat buildflag 2024-10-31 20:15:18 -07:00
Jay Harris 80bb6c515a [Lit]: Migrate br-toolbar from Polymer to Lit (#26298) 2024-10-31 23:16:53 +01:00
Jocelyn Liu f9ad5a4ddc Merge pull request #26082 from brave/open_leo_from_search
Open Leo from search
2024-10-31 14:03:29 -07:00
Jay Harris a27ceda199 [Nala]: Bump to latest (#26307) 2024-11-01 09:35:41 +13:00
Kevin Smith 3161d41432 Merge pull request #26325 from brave/ksmith-rewards-reset-text
[Rewards 3.0] Update reset link text
2024-10-31 16:01:18 -04:00
Jocelyn Liu b7d48f3fd3 Support Open Leo from Brave Search
- Add a new permission for opening Leo from Brave Search
- Add a NavigationThrottle to intercept specific URL requests and open Leo
2024-10-31 12:05:53 -07:00
cdesouza-chromium 256a2e82c9 [DanglingPtr] Fix WeakWrapperSharedURLLoaderFactory patching (#26321)
This change removes patching for `WeakWrapperSharedURLLoaderFactory`,
which was initially necessary to enable daling pointer detection.

`TestURLLoaderFactory::GetSafeWeakWrapper()` provides a weak reference,
which are checked, and are more appropriate for this case, where
dangling is expected.

Resolves https://github.com/brave/brave-browser/issues/42000
2024-10-31 19:05:15 +00:00
Brian Clifton 0327c7f14a Merge pull request #26272 from brave/bsc-distinguish-out-of-credentials
Add new purchase state OUT_OF_CREDENTIALS for VPN service
2024-10-31 11:22:03 -07:00
brave-builds b4aba28cfc 1.73.65 2024-10-31 16:02:39 +00:00
zenparsing 318fa034a1 [Rewards 3.0] Update reset link text 2024-10-31 11:19:44 -04:00
Simone Arpe 5574170fd2 Fix OnboardingViewModel range exception (#26317)
Fix onboarding range exception
2024-10-31 16:14:36 +01:00
cypt4 23cf8080bb Add shielded tokens to the assets list (#26141)
* Add shielded tokens to the assets list
Resolves https://github.com/brave/brave-browser/issues/41792
2024-10-31 18:03:05 +04:00
cdesouza-chromium 4e7fcd376f [CodeHealth] Use std::string::[starts|ends]_with (#26306)
For cases where the comparison is case sensitive, we should use the
methods provided by the common std string types provided since cxx20.
2024-10-31 13:44:30 +00:00
brave-builds aaafc0686d 1.73.64 2024-10-31 12:55:05 +00:00
cdesouza-chromium 309d522328 [DanglingPtr] Default enable_dangling_raw_ptr_feature_flag on Linux (#26318)
[DanglingPtr] Default `enable_dangling_raw_ptr_feature_flag`

This flag should not be set to `true` but rather defaulted on Linux, as
we don't want the flag being swtiched on for Release builds, which don't
support it.
2024-10-31 13:35:43 +01:00
Arthur Edelstein 746b132519 Avoid race condition in FarbleScreenPopupPosition (#26308) 2024-10-31 19:14:09 +07:00
brave-builds ccfd59767b 1.73.63 2024-10-31 12:02:45 +00:00
cdesouza-chromium efb5806b98 [DanglingPtr] Enable dangling pointer detector for Linux (#26293)
This change switches on the dangling pointer detector for Linux. It also
includes a couple patches for chromium, that will have to be
investigated and corrected. With the detector on for Linux, there will
be a first line of bug prevention with this instrumentation, as it will
act as the first barrier for new cases of dangling pointers being
introduced in our codebase.

Resolves https://github.com/brave/brave-browser/issues/41955
2024-10-31 10:58:24 +00:00
Simone Arpe 795271e314 (Wallet) Show warning message changing ownership (#26280)
Shows warning message when a change of ownership is requested for Solana account.
Fixes two crashes affecting signing messages and transactions.
2024-10-31 11:09:23 +01:00
AlexeyBarabash 8c3e3e9971 Add command line key to diagnose Sync Passwords switch issue (#26301)
* Add command line key to diagnose Sync Passwords switch issue

To see additional diagnostic output, add `--verbose_sync_passwords_pref` through QA Preferences/Command line
2024-10-31 09:52:20 +02:00
cdesouza-chromium ac28a391eb [DanglingPtr] Fix UaFs with SidePanelEntry observations (#26288)
[DanglingPtr] Fix UaFs with `SidePanelEntry` observation

This change addresses the uaf cases we were having with the multisource
observation for `SidePanelEntry` on `SidebarContainerView`. The main
issue we were having is that we can't precisely be notified of when a
given `SidePanelEntry` is going out of scope, and in many cases the
instances would be destroyed before the lifetime of
`SidebarContainerView`. In such cases, the observation would be kept
around in the multisource observer, and eventually would cause an UaF,
as the multisource observer was being destroyed and trying to remove the
outstanding observations that were dangling.

`SidePanelEntry` observations do dangle in upstream. That's the model
they have for the lifetimes: FeatureFoo is destroyed before
`SidePanelEntry`. There are exactly 2 ways for a `SidePanelEntry` to be
destroyed in chromium: FeatureFoo destroyes it via Deregister, or
`SidePanelRegistry` is destroyed before `FeatureFoo`.
`SidebarContainerView` cannot in a reliable way keep track of these
guarantees.

This change is predicated on the fact that `SidebarContainerView` will
always outlive all the use of events by any living `SidePanelEntry`
instance.

In this change we introduce a customisation point to `SidePanelEntry`
that allows us to check if a certain entry is being observed or not. If
it is we don't double-observe. Observations are then removed when a tab
is destroyed, which includes when it gets moved to another Browser
window.

Resolves brave/brave-browser#39053
Resolves brave/brave-browser#41924
2024-10-31 03:35:27 +00:00
Brian Clifton 76d051033c Add new purchase state OUT_OF_CREDENTIALS for VPN service
This handles the condition where the all the credentials for a given day
are redeemed and there are none left. This shouldn't happen - but can
happen if there are network issues. Specifically, when the client doesn't
receive response from server after redeeming the credential.

Fixes https://github.com/brave/brave-browser/issues/33031
2024-10-30 19:49:49 -07:00
brave-builds dcd982b6f2 1.73.62 2024-10-31 00:02:49 +00:00
Terry Mancey c19f88c835 Merge pull request #26303 from brave/issues/41985
[ads] General code health
2024-10-30 17:51:01 -05:00
Douglas Daniel 62e8e1f30f Merge pull request #26214 from brave/feat-wallet-shield-zcash-account-modal
feat(wallet): Shield ZCash Account Modal
2024-10-30 17:18:02 -05:00
samartnik 2dc1abf72c Merge pull request #26304 from brave/android_remove_ntp_upstream_item
[Android] Explicitly remove `New tab page cards` from menu
2024-10-30 17:54:10 -04:00
Terry Mancey 107c420648 [ads] Add SmartNTT [T≠] epoch operator conditon matcher 2024-10-30 16:46:07 -05:00
Terry Mancey 2bd9531cfe [ads] Catalog code health 2024-10-30 16:46:07 -05:00
samartnik f3423ebb67 Merge pull request #26302 from brave/android_password_settings_fix
[Android] Fix for crash in Password settings
2024-10-30 17:23:44 -04:00
Terry Mancey e6e34fb9e7 [ads] Unit test code health 2024-10-30 16:16:14 -05:00
Artem Samoilenko 1585f4980d [Android] Explicitly remove New tab page cards from menu
This item used in the upstream NTP, that we don't use.
2024-10-30 16:13:46 -04:00
Terry Mancey 4d4272bb90 [ads] constexpr code health 2024-10-30 14:36:58 -05:00
Terry Mancey dc0452ff6e [ads] IWYU code health 2024-10-30 14:33:53 -05:00
Terry Mancey 0ebc1a4a89 [ads] Tab manager code health 2024-10-30 14:14:04 -05:00
Terry Mancey ac23694067 [ads] Comments code health 2024-10-30 14:14:03 -05:00
Terry Mancey 916ef5489f [ads] Challenge bypass ristretto code health 2024-10-30 14:14:03 -05:00
Terry Mancey 5c2bfb4b21 [ads] Search result ad handler code health 2024-10-30 14:14:03 -05:00
Artem Samoilenko 04ba955eaa [Android] Fix for crash in Password settings
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/df77cbacb9476b0b6d3e75cc34b5d127985e79c3

[Settings] Enable the single-activity mode by default

Bug: b/356743945
2024-10-30 13:08:27 -04:00
10f25a53f7 AIChat full-page UI (#25800)
Introduces full-page UI. Requires the AIChatHistory feature flag to be enabled.
Receives title events for conversations from the conversation API.

---------

Co-authored-by: Taher <8665427+nullhook@users.noreply.github.com>
Co-authored-by: Jay Harris <jay.harris@outlook.co.nz>
2024-10-30 09:19:26 -07:00
brave-builds f93adf2d94 1.73.61 2024-10-30 16:02:44 +00:00
Douglas Daniel 61a3657128 feat(wallet): Shield ZCash Account Modal 2024-10-30 09:38:37 -05:00
brave-builds 22adba2161 1.73.60 2024-10-30 12:03:08 +00:00
Simon Hong d3eecec14e Merge pull request #26271 from brave/disable_crash_test
Disabled WindowClosingConfirmBrowserTest.TestWithDownload
2024-10-30 20:31:28 +09:00
Anton Paymyshev afd77d46b6 Support signing typed data on Trezor devices (#26165)
* Support signing typed data on Trezor deivces
2024-10-30 16:09:39 +07:00
cdesouza-chromium 3b462c7f0a [CodeHealth] Disallow new NOTREACHED_IN_MIGRATION uses (#26297)
[CodeHealth] Disallow new `NOTREACHED_IN_MIGRATION` instances

This PR adds a new presubmit check to prevent the introduction of new
occurrences for `NOTREACHED_IN_MIGRATION`. This macro is supposed to be
on its way out, however there are still new occurrances being introduced
in recent times.
2024-10-30 04:07:12 +00:00
brave-builds a08ef52999 1.73.59 2024-10-30 02:23:37 +00:00
Terry Mancey f98f048edf Merge pull request #26284 from brave/issues/41927
[ads] Add SmartNTT virtual prefs and condition matchers
2024-10-29 19:13:11 -05:00
brave-builds 7385f23e8d 1.73.58 2024-10-30 00:03:14 +00:00
Agustín Ruiz f9ad894c42 Desktop settings fixes (#26285)
* Update settings_manage_profile.ts

* Add Manage Profile page to customize padding

* imports: order alphabetically

* Fix brave://settings/braveSync/setup image padding

Fixes the image being left out of the margin

* Fix padding on inner setting pages

* changed token to spacing

* Update settings_manage_profile.ts
2024-10-29 20:28:35 -03:00
William MuliandDouglas Daniel 16dfb86098 feat(wallet) Implement Meld Buy Flow in the FE (#25088)
* Added meld integration endpoints and initial UI to fetch quotes

* WIP: Quotes component

* Added quote details and action button

* Fetch service providers and add props to quotes component

* Added quote list in fund wallet page

* Improve useBuy hook, filter assets and add flip amounts functionality

* Fixed caret alignment

* Added mockCountries and mockPaymentMethods for storybook and testing

* Added query for fetching meld payment methods

* Update modal background filter and blur

* Added country and payment method filters

* Created country and payment method filter component and sotrybook story

* Added payment method and country filter modal

* Fix duplicated icon declaration

* Add contract address to search and add list header

* Added list title style

* Add space

* Added endpoint for creating meld buy widget

* Refactor: Rename args type name

* feat: Create and launch meld widget

* Fix type error

* feat: Added search for quotes, spacing improvements

* Add default payment method

* Code Cleanup and Route Params

---------

Co-authored-by: Douglas Daniel <douglashdaniel@gmail.com>
2024-10-29 18:14:09 -05:00