Commit Graph
78322 Commits
Author SHA1 Message Date
Claudio DeSouza 89f4eb930e [cr149] String::Substring renamed to DeprecatedSubstring
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/c6f8d3ab428ec002d18b29ecd18c0c124b667e87

commit c6f8d3ab428ec002d18b29ecd18c0c124b667e87
Author: Kent Tamura <tkent@chromium.org>
Date:   Thu Apr 9 01:44:49 2026 -0700

    WTF: Rename String::Substring() to DeprecatedSubstring()

    * inspector_css_parser_observer.cc:
      A DCHECK assumes `comment_text` is not empty, so `start_offset`
      should not be greater than `parsed_text_.length()`. We can use
      subview().

    Bug: 473854537
    Change-Id: Ia38b03fd58755e9370037c483bce7bfd5482343e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7740859
    Auto-Submit: Kent Tamura <tkent@chromium.org>
    Reviewed-by: Fredrik Söderquist <fs@opera.com>
    Commit-Queue: Fredrik Söderquist <fs@opera.com>
    Cr-Commit-Position: refs/heads/main@{#1612041}
2026-05-22 16:18:04 -04:00
Claudio DeSouza 794beb15af [cr149] EnterprisePolicyUrlChecker now EnterprisePolicyChecker
This change updades our checker to use the newer version and keeps a
nullified implementation for the new method added to this new class.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/75b2acce79497326ac3388f8d3e6d03a21b1459e

commit 75b2acce79497326ac3388f8d3e6d03a21b1459e
Author: Haihan Chen <haihan@google.com>
Date:   Thu Apr 9 08:57:26 2026 -0700

    [GLIC CEP Paste Support] Merge actor enterprise checks into single `EnterprisePolicyChecker` interface

    To simplify the API and avoid extra param for actor tasks for content
    policy checks specifically, since glic is the only user and implements
    both url and content checks in a single class right now
    (`glicactorpolicychecker`).

    This is a refactor, content validation usage in tools like `PageTool` in
    follow-up CL.

    Bug: 473047343
    Change-Id: I8fb9b45955ccff15c3331af445df05dfcc589ac4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7735646
    Reviewed-by: Kevin McNee <mcnee@chromium.org>
    Commit-Queue: Haihan Chen <haihan@google.com>
    Cr-Commit-Position: refs/heads/main@{#1612275}
2026-05-22 16:18:04 -04:00
Claudio DeSouza c1df6b7336 [cr149] Several actor headers moved
These are merely header inclusion path changes.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/a04bd984f618f1b601d1f1eed03c79526fede1df

commit a04bd984f618f1b601d1f1eed03c79526fede1df
Author: Andrew Liu <liu@chromium.org>
Date:   Thu Apr 9 13:21:47 2026 -0700

    Move actor_features, actor_switches, and actor_util to components

    This allows cross-platform (i.e. iOS) reuse of the feature flags. This
    CL also splits out the ScreenshotIframeRedactionScope enums to clean up
    the transitive dependencies.

    Bug: b:498735476
    Link: https://chromium-review.googlesource.com/id/I34099ac7e63ab047fbe2d8afa78bde996a6a6964
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7726881
    Commit-Queue: Andrew Liu <liu@chromium.org>
    Reviewed-by: Siddhartha S <ssid@chromium.org>
    Reviewed-by: Kevin Graney <kmg@google.com>
    Cr-Commit-Position: refs/heads/main@{#1612467}
2026-05-22 16:18:03 -04:00
Claudio DeSouza cac9a404dd [cr149] kTrackingProtection3pcd deleted
This feature has been deleted with the flag, which we were disabling.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/6cecf5c9cf156340d248173d59672e41981467af

commit 6cecf5c9cf156340d248173d59672e41981467af
Author: Fiona Macintosh <fmacintosh@google.com>
Date:   Thu Apr 9 01:59:36 2026 -0700

    Delete kTrackingProtection3pcd feature

    Fixed: b:482352097
    Change-Id: I856bdd18a750581b6bc717652e4a531ee5cda00f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7741961
    Auto-Submit: Fiona Macintosh <fmacintosh@google.com>
    Reviewed-by: Christian Dullweber <dullweber@chromium.org>
    Commit-Queue: Christian Dullweber <dullweber@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1612047}
2026-05-22 16:18:03 -04:00
Claudio DeSouza 3b0f99edcf [cr149] Rely on //chrome/browser/ui/test:dialog
This the componentisation of these files, we do not need anymore to
include these sources ourselves in `brave_browser_tests`.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e0cd9afb25e911c62c8c096ef55816bd9e3b665e

commit e0cd9afb25e911c62c8c096ef55816bd9e3b665e
Author: Tiago Vignatti <tvignatti@igalia.com>
Date:   Thu Apr 9 07:28:31 2026 -0700

    Componentize chrome/browser/ui/test/

    This changes create chrome/browser/ui/test/BUILD.gn with dedicated
    targets for all test files in this directory, which were previously
    scattered across chrome/test/BUILD.gn and chrome/browser/ui/BUILD.gn.
    Some of the files were duplicated in multiple targets, and has now
    fixed.

    New targets:
    - :dialog — moved from //chrome/test:test_support and de-duplicated from
      browser_tests/interactive_ui_tests
    - :closed_waiter — moved from //chrome/test:test_support_ui
    - :test_support — de-duplicated and moved from browser_tests,
      interactive_ui_tests, and //chrome/browser/ui:test_support
    - :confirm_bubble — moved from //chrome/browser/ui:test_support
    - :browser_tests — browser test files
    - :interactive_ui_tests — interactive UI test files
    - :app_window — moved from //chrome/browser/ui:test_support

    Bug: 353332589
    Change-Id: I602615d0b8a96af88af82cf1caaf75a3a2184d07
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7704138
    Reviewed-by: Darryl James <dljames@chromium.org>
    Commit-Queue: Tiago Vignatti <tvignatti@igalia.com>
    Cr-Commit-Position: refs/heads/main@{#1612208}
2026-05-22 16:18:03 -04:00
Claudio DeSouza 0e4e07ea90 [cr149] AddFakeURLToHistoryDB deleted
`history::AddFakeURLsToHistoryService` should be used instead.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/b93f6d1f2368fadbd2367931cc2fbccb1abcc790

commit b93f6d1f2368fadbd2367931cc2fbccb1abcc790
Author: Greg Thompson <grt@chromium.org>
Date:   Tue Apr 7 06:58:55 2026 -0700

    Add sequence checks to sql::Database

    Also in this change:

    - Fix a few tests that were violating the sequence requirements.
    - Remove Database::ReportMemoryUsage, which was unused.

    Bug: 40827949
    Change-Id: I1a5c4630ed150552cdf66cf5951e2111c7aa8434
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7687491
    Commit-Queue: Greg Thompson <grt@chromium.org>
    Auto-Submit: Greg Thompson <grt@chromium.org>
    Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
    Reviewed-by: Moe Ahmadi <mahmadi@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1610716}
2026-05-22 16:18:02 -04:00
Claudio DeSouza 2a75a3f8c6 [cr149] MakeOptionsFor[Set|Get] with top_frame_origin arg
This recent change requires us to fix our own overrides and callers for
these functions.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/1575bebcd1c16fa1508c87eda06c5b3b1c364c3c

commit 1575bebcd1c16fa1508c87eda06c5b3b1c364c3c
Author: Duncan Mercer <mercerd@google.com>
Date:   Wed Apr 8 15:31:53 2026 -0700

    [Blink/Network] Support origin targeting for secure exemptions

    This change updates WebSecurityPolicy to support origin targeting
    for secure embedder exceptions by allowing specific origins instead
    of applying globally to an entire scheme.

    It also migrates secure cookie exemptions—specifically those affecting
    third-party cookie blocking and SameSite restrictions—in CookieManager
    and CookieSettings from scheme/host-based registration to
    url::Origin-based registration. This enables precise, unscoped
    exemptions for secure origins (such as chrome-untrusted://lens)
    without modifying the properties or behavior of the cookie origin
    itself.

    Bug: b:483614998
    Change-Id: I7fe2a00e631513c6ebcdb5fb996914f5b48a9447
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7689068
    Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    Reviewed-by: Nidhi Jaju <nidhijaju@chromium.org>
    Reviewed-by: Dylan Cutler <dylancutler@google.com>
    Commit-Queue: Duncan Mercer <mercerd@google.com>
    Reviewed-by: Joshua Hood <jdh@chromium.org>
    Reviewed-by: Lily Chen <chlily@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1611822}
2026-05-22 16:18:02 -04:00
Claudio DeSouza 8070a2b7f7 [cr149] TranslateLanguageList with TranslateUrlFetcher arg
This change corrects several places to pass `TranslateUrlFetcher` into
`TranslateLanguageList`.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/6aef37c345ee6449713a213c04878417dd87d0c4

commit 6aef37c345ee6449713a213c04878417dd87d0c4
Author: Danilo Françoso Tedeschi <danft@google.com>
Date:   Wed Apr 8 06:26:11 2026 -0700

    Replace static DisableUpdate with dependency injection for TranslateLanguageList.

    This change removes the global static flag `update_is_disabled` from TranslateLanguageList and instead allows injecting a TranslateUrlFetcher instance. This improves testability by allowing mock fetchers to be used without relying on global state. TranslateDownloadManager now has a setter for its TranslateLanguageList.

    Change-Id: I739659aba52e95e6236e0b5d85fd9672b090c864
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7719220
    Reviewed-by: Basia Zimirska <basiaz@google.com>
    Commit-Queue: Danilo Françoso Tedeschi <danft@google.com>
    Cr-Commit-Position: refs/heads/main@{#1611437}
2026-05-22 16:18:02 -04:00
Claudio DeSouza 01294c6062 [cr149] BubbleAnchor now a type
This used to be an alias to:

```cxx
using BubbleAnchor = std::variant<std::nullptr_t, View*, ui::TrackedElement*>;
```

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/1ba6a69579ba3b5f5925ff77a390be5a99d748e7

commit 1ba6a69579ba3b5f5925ff77a390be5a99d748e7
Author: Maks Orlovich <morlovich@chromium.org>
Date:   Tue Apr 7 11:33:31 2026 -0700

    Make BubbleAnchor an own class.

    The variant implementation has a property that seems very unfortunate:
    it has 3 possible places it can store nullptr, which makes it tricky to
    reason about and work with, e.g.:

    BubbleAnchor Foo() {
     if (View* view = Bar()) {
       return view;
     }
     return nullptr;
    }

    is not equivalent to: BubbleAnchor Foo() {
      return Bar();
    }

    It's also somewhat awkward to use, and can't be forward declared.

    The class wrapper normalizes the nulls. It also gives it is own
    header (and can be forward declared).

    Change-Id: I2aacb894ee995af7fd012f2762826cd30f277179
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7647509
    Reviewed-by: Dana Fried <dfried@chromium.org>
    Commit-Queue: Maks Orlovich <morlovich@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1610910}
2026-05-22 16:18:01 -04:00
Claudio DeSouza 18febcb2ed [cr149] Use ui_test_utils::FindAnyBrowser
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/ddd5ffe0ad3129bb03508ab864465e77f0e50bed
https://chromium.googlesource.com/chromium/src/+/2174233eeebf04d1a671c66f2be7b630e6117de0

commit ddd5ffe0ad3129bb03508ab864465e77f0e50bed
Author: Yu He <yhe@microsoft.com>
Date:   Wed Apr 8 12:02:16 2026 -0700

    [bedrock] Remove unused chrome::FindAnyBrowser()

    The FindAnyBrowser() function in browser_finder.h
    is unused. Its declaration already carried a warning ("Do not use this
    method"), and there are no remaining callers in the codebase.

    Remove the declaration and definition to reduce dead code.

    Bug: 494010890
    Change-Id: Iec391a4c4f9001726daf4b350fc3e3eccafe9017
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7736509
    Commit-Queue: Tom Lukaszewicz <tluk@chromium.org>
    Auto-Submit: Yu He <yhe@microsoft.com>
    Reviewed-by: Tom Lukaszewicz <tluk@chromium.org>
    Reviewed-by: Qikai Zhong <qikaizhong@microsoft.com>
    Cr-Commit-Position: refs/heads/main@{#1611701}

commit 2174233eeebf04d1a671c66f2be7b630e6117de0
Author: yhe <yhe@microsoft.com>
Date:   Sun Mar 29 15:57:42 2026 -0700

    [bedrock] Move FindAnyBrowser to ui_test_utils

    Migrate chrome::FindAnyBrowser() into ui_test_utils::FindAnyBrowser(),
    reimplementing it on top of GlobalBrowserCollection and
    BrowserWindowInterface instead of the legacy Browser-based APIs.

    The new helper:
    - Returns BrowserWindowInterface* (instead of Browser*).
    - Iterates browsers via GlobalBrowserCollection::ForEach() in
      activation order.
    - Skips delete-scheduled browsers.
    - On ChromeOS, excludes windows shown on another user's desktop
      via ash::MultiUserWindowManager.
    - Defaults match_original_profiles to true (most callers used true).

    Update all test call-sites to use the new function:
    - session_login_browsertest.cc
    - profile_window_browsertest.cc
    - browser_finder_chromeos_browsertest.cc
    - browser_finder_chromeos_unittest.cc
    - toolbar_view_interactive_uitest.cc

    Add the required BUILD.gn deps (//chrome/browser/ui/browser_window,
    //chrome/browser/ui/ash/multi_user, //chrome/test:test_support_ui).

    Bug: 494010890
    Change-Id: I07701d0c20514e51ead54c3367ddfbb0317735a6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7686930
    Reviewed-by: Qikai Zhong <qikaizhong@microsoft.com>
    Reviewed-by: Tom Lukaszewicz <tluk@chromium.org>
    Commit-Queue: Tom Lukaszewicz <tluk@chromium.org>
    Auto-Submit: Yu He <yhe@microsoft.com>
    Cr-Commit-Position: refs/heads/main@{#1606838}
2026-05-22 16:18:01 -04:00
Claudio DeSouza 110869ed10 [cr149] SidePanelEntry::PanelType entries now in SidePanelType
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/78425c46e1229419e65b0b8485e0e5b4e405bb85

commit 78425c46e1229419e65b0b8485e0e5b4e405bb85
Author: Mohamed Adel <adelm@google.com>
Date:   Wed Apr 8 10:21:20 2026 -0700

    [Side Panel Infra] Move SidePanelEntry::PanelType into side_panel_enums

    Bug: 499977101
    Change-Id: I04e7d9559c496d59fb84731bb0f26d99fbc5afe6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7731922
    Reviewed-by: Theresa Sullivan <twellington@chromium.org>
    Auto-Submit: Moe Adel <adelm@google.com>
    Commit-Queue: Moe Adel <adelm@google.com>
    Cr-Commit-Position: refs/heads/main@{#1611625}
2026-05-22 16:18:01 -04:00
Claudio DeSouza 8f31759480 [cr149] kTpcdMetadataGrants deleted
The feature was being disabled in Brave, and now it is gone.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/b7f05fafa03fe5ae3a7039fbad7dcf16198beda4

commit b7f05fafa03fe5ae3a7039fbad7dcf16198beda4
Author: Fiona Macintosh <fmacintosh@google.com>
Date:   Tue Apr 7 12:00:10 2026 -0700

    Delete TPCD metadata manager and associated 3pcd cookies logic

    Change-Id: I258499866c8714129644e219a76e4816e24f4783
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7726996
    Reviewed-by: Josh Karlin <jkarlin@chromium.org>
    Reviewed-by: Christian Dullweber <dullweber@chromium.org>
    Reviewed-by: Alex Ilin <alexilin@chromium.org>
    Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
    Reviewed-by: Maks Orlovich <morlovich@chromium.org>
    Commit-Queue: Fiona Macintosh <fmacintosh@google.com>
    Reviewed-by: Joshua Hood <jdh@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1610923}
2026-05-22 16:18:01 -04:00
Claudio DeSouza 6e74e53c4e [cr149] IWYU for base/logging.h
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/57a7dfb4e2645b9c62d3a005436c815f4314b5e6
https://chromium.googlesource.com/chromium/src/+/a65d0fd3d0c70c37e7ac03bbc7389961eb69e66d

commit 57a7dfb4e2645b9c62d3a005436c815f4314b5e6
Author: Daniel Cheng <dcheng@chromium.org>
Date:   Tue Apr 7 01:29:42 2026 -0700

    Remove base/logging.h include from validation_errors.h

    This header is included in many C++ source files generated from .mojom
    and is fairly heavyweight. While moving the logging out of the headers
    is straightforward, array validation failures generate a std::string
    with some runtime details. `std::string_view` handles both cases nicely,
    but there is value in minimizing the includes in this file as much as
    possible. `const char*` and using `.c_str()` was the initial approach
    considered, but discarded as a bit too hacky after some prototyping.

    Instead, the helpers that create additional context for array validation
    failures now return a struct with details about the failure. The various
    validation error reporting functions have additional overloads that
    internally stringify the details so that validation errors are still
    reported in the exact same way.

    gemini-cli was used to quickly prototype some ideas as well as implement
    the overall CL, with some manual followups to improve naming and reduce
    duplication.

    One unintended side effect is a minor improvement in binary size, since
    the new error detail structs are trivially destructible, unlike
    std::string.

    Bug: 499476145
    Change-Id: If52b10f4928b7920ea7b120754a1798c125fefa7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7730404
    Commit-Queue: Daniel Cheng <dcheng@chromium.org>
    Reviewed-by: Lei Zhang <thestig@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1610607}

commit a65d0fd3d0c70c37e7ac03bbc7389961eb69e66d
Author: Daniel Cheng <dcheng@chromium.org>
Date:   Tue Apr 7 01:23:35 2026 -0700

    Fix several more IWYU errors for base/logging.h

    Bug: 499476145
    Change-Id: Iba431f2c534365f9ea575c9be86bd70e8fa6a268
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7732103
    Owners-Override: Takuto Ikuta <tikuta@chromium.org>
    Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
    Reviewed-by: Kentaro Hara <haraken@chromium.org>
    Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1610606}
2026-05-22 16:18:00 -04:00
Claudio DeSouza 9e5e5102d3 [cr149] CSSSelectorFragmentAnchor feature removed
This feature was being disabled in Brave.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/d57f3260469cb57abc0109976110a760d30dcfbb

commit d57f3260469cb57abc0109976110a760d30dcfbb
Author: Andrew Paseltiner <apaseltiner@chromium.org>
Date:   Wed Apr 8 14:15:25 2026 -0700

    Remove experimental CSSSelectorFragmentAnchor feature

    The CSSSelectorFragmentAnchor feature was an experimental extension to
    fragment directives that has not seen active development in years and
    has never been officially specified. Furthermore, the implementation
    lacked certain security controls (crbug.com/497956094) discussed in the
    feature proposal
    (https://github.com/WICG/scroll-to-text-fragment/blob/main/EXTENSIONS.md#proposed-solution).

    This CL removes the implementation, including:
    - The CssSelectorFragmentAnchor and CssSelectorDirective classes.
    - The CSSSelectorFragmentAnchor runtime-enabled feature flag.
    - The -internal-selector-fragment-anchor pseudo-class.
    - Associated UA styles and metrics.

    The createSelectorDirective() JS API is preserved as it is used by the
    Text Fragments feature to generate TextDirectives. Related WPTs are
    updated to remove CssSelector specific tests while maintaining coverage
    for general directive parsing.

    Bug: 1253707, 40203851, 40203761, 497956094
    Change-Id: I2b11bdbde4475e48693f182ecca3c0bf9c79c198
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7735903
    Reviewed-by: Sebastien S-G <sebsg@chromium.org>
    Commit-Queue: Andrew Paseltiner <apaseltiner@chromium.org>
    Reviewed-by: Rick Byers <rbyers@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1611777}
2026-05-22 16:18:00 -04:00
Max Karolinskiy b6c404bf3c [cr149] Update Lit mangler snapshot 2026-05-22 16:17:59 -04:00
Claudio DeSouza 31bd278439 [cr149] Bump resource_ids
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/012ad31d6d103d5300df5e0141c22d3d7491d123

commit 012ad31d6d103d5300df5e0141c22d3d7491d123
Author: dpapad <dpapad@chromium.org>
Date:   Mon Apr 27 20:43:30 2026 -0700

    Fix grit.exception.IdRangeOverflow: ID range overflow build error.

    Likely triggered by the file additions in https://crrev.com/c/7791019.

    Fixed: 507182397
    Change-Id: I5a7a53a80a479a8041dcfc56a6ba7297f7314d11
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7798499
    Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
    Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
    Reviewed-by: Fumitoshi Ukai <ukai@google.com>
    Cr-Commit-Position: refs/heads/main@{#1621526}
2026-05-22 16:17:59 -04:00
Claudio DeSouza ab73e83f1f [cr149] IWYU fixes. 2026-05-22 16:17:59 -04:00
Claudio DeSouza 1e4cd8fd09 [cr149] gnrt run for Chromium 149.0.7824.1. 2026-05-22 16:17:58 -04:00
Claudio DeSouza 63f95ad6d6 Conflict-resolved patches from Chromium 148.0.7778.179 to Chromium 149.0.7824.1. 2026-05-22 16:17:58 -04:00
Claudio DeSouza c9f97c1560 Apply-fixed 🩹 patches from Chromium 148.0.7778.96 to Chromium 149.0.7824.1. 2026-05-22 16:17:58 -04:00
Claudio DeSouza 2f5da17f69 Update from Chromium 148.0.7778.179 to Chromium 149.0.7827.14. 2026-05-22 16:17:58 -04:00
Eli Hini 1d31267df0 [iOS]Form Autofill Manage Passwords Settings - Password Detail (#36449)
Redesigned Manage Password Detail screen in iOS Settings with a SwiftUI-based UI following Figma spec.
Added a new view for displaying passwords belonging to the same domain (Password Group).
The user is able to delete passwords in the group.
Also updated authentication challenge to be performed before entering Manage Passwords.

New SwiftUI Components
ManagePasswordDetailView – Displays the contents of a CWVPassword object:
- Provides menu to copy content on tap
- Securely copies password into paste board
- Hides passwords by default
- Provides a reveal button

ManagePasswordGroupViewMode - Data model for showing and modifying passwords in a group.
- Edit mode for multi-select and bulk delete
- For future Add password to the group (next PR)

ManagePasswordGroupView – Displays a group of password items belonging to the same domain.
2026-05-22 12:32:42 -07:00
Brian R. Bondy 1e05710959 Fix crash when opening Rewards panel after disabling via Brave Origin (#36630)
Resolves brave/brave-browser#55718
2026-05-22 12:33:57 -04:00
brave-builds 4ffdef6f79 1.92.91 2026-05-22 16:03:30 +00:00
Brian R. Bondy d15f720f3c Skip stats usage pings on Brave Origin branded builds (#36547)
Add an enable_brave_stats_updater buildflag that defaults to
!is_brave_origin_branded, following the pattern used by other features
(enable_brave_ads, enable_brave_rewards, etc.). On Brave Origin builds,
exclude brave_stats_updater.cc/.h and its tests via GN, guard callers
with #if BUILDFLAG, and put a static_assert in the header so any
accidental include fails with a clear error.

Resolves https://github.com/brave/brave-browser/issues/55595
2026-05-22 11:52:15 -04:00
Kevin Smith f5c75c02fa [CompactMode] Refactor constants and helpers for maintainability (#36596)
* Remove `brave_compact_horizontal_tabs_layout.h` and colocate
  constants with existing metrics in `layout_constants.h`.
* Inline constant values into metric accessor helpers.
* Increase clarity of code comments.
2026-05-22 11:45:24 -04:00
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