Commit Graph
921 Commits
Author SHA1 Message Date
Sangwoo Ko e6c4f6144c Force context menu on Shift + Right Click on elements in pages (#31770)
* Force context menu on Shift + Right Click on elements in pages

This PR introduces a feature that allows users to open the context menu
even if `event.preventDefault()` is called on the `contextmenu` event
when the Shift key is pressed.

This is particularly useful for users who want to access the context
menu on web pages that disable it through JavaScript.

This is achieved by bypassing the `preventDefault` check for
`contextmenu` events when the Shift key is detected as being pressed in
the "EventDispatcher" so that Node's `DefaultEventHandler` is called.

* Exclude rewrite from license checks
2025-11-30 17:08:45 +09:00
yan 03ce7add55 update js-yaml to 4.1.1 (#32328)
* update js-yaml to 4.1.1

fix https://github.com/brave/brave-browser/issues/50844

* exclude tools/crates in npm audit
2025-11-15 18:35:32 +01:00
Brian R. Bondy c879c7877a Remove some unused Python script tooling code (#32220) 2025-11-07 15:47:12 -05:00
Wojciech Knapik d9170cc51d Retry on failure in sign_binaries.py (#31589) 2025-11-05 11:23:31 +01:00
Gaetano Checinski ade2e98361 detect what affected tests for webpacked projects - adds ts folders as data (#31254)
extends the transpile_web_ui.py to assert that the source roots provided via imports_from are complete.
The purpose of this is to improve the gn analyze functionality to be able to infer which tests need to run based on filechanges alone.
2025-10-28 07:34:11 +00:00
Michael Herrmann 8cab96d9e1 Fix case-sensitivity error in Windows builds (#32018)
This happened when the drive letter was lower- instead of upper-case:

Traceback (most recent call last):
  File "C:\src\tools\grit\grit.py", line 17, in <module>
    sys.exit(grit.grit_runner.Main(sys.argv[1:]))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\src\tools\grit\grit\grit_runner.py", line 307, in Main
    toolobject = _GetToolInfo(tool)[_FACTORY]()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\src\tools\grit\grit\grit_runner.py", line 25, in ToolFactoryBuild
    import grit.tool.build
  File "C:\src\tools\grit\grit\tool\build.py", line 21, in <module>
    from grit import grd_reader
  File "C:\src\tools\grit\grit\grd_reader.py", line 17, in <module>
    from grit.node import mapping
  File "C:\src\tools\grit\grit\node\mapping.py", line 12, in <module>
    from grit.node import empty
  File "C:\src\tools\grit\grit\node\empty.py", line 10, in <module>
    from grit.node import include
  File "C:\src\tools\grit\grit\node\include.py", line 12, in <module>
    import grit.format.html_inline
  File "C:\src\tools\grit\grit\format\html_inline.py", line 22, in <module>
    from grit.format import minifier
  File "C:\src\tools\grit\grit\format\minifier.py", line 35, in <module>
    from brave_chromium_utils import inline_chromium_src_override; inline_chromium_src_override(globals(), locals())
                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\src\brave\script\brave_chromium_utils.py", line 111, in inline_chromium_src_override
    chromium_src_override = get_chromium_src_override(orig_file)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\src\brave\script\brave_chromium_utils.py", line 64, in get_chromium_src_override
    assert path.startswith(src_dir), (path, src_dir)
           ^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: ('C:\\src\\tools\\grit\\grit\\format\\minifier.py', 'c:\\src')
2025-10-24 12:48:19 +01:00
Claudio DeSouza a3e3e80015 [cr142] licenses.py dropped target_os
We no longer have any OS-dependent excluded paths any longer (confirmed with
security team), so we can drop the checks that relied on `target_os` completely.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/2b748c6b6a27f01282f16dd87b30850f86987fa9

commit 2b748c6b6a27f01282f16dd87b30850f86987fa9
Author: David Song <wintermelons@google.com>
Date:   Wed Sep 24 09:21:26 2025 -0700

    [Fuchsia] Remove SwiftShader from the LICENSE file

    WebEngine is built with swiftshader enabled since some tests depend on
    it, but swiftshader artifacts are excluded from the packages uploaded
    to CIPD, so it should be excluded from the LICENSE file as well.

    Updated the licenses.py script to add support for --exclude-dir
    argument which is used now to exclude SwiftShader license.

    Bug: 444526998
    Change-Id: Ib38133c6760a4c477f7b0a80aab92dca58b72c8e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6946765
    Reviewed-by: Zijie He <zijiehe@google.com>
    Reviewed-by: Andrew Grieve <agrieve@chromium.org>
    Commit-Queue: David Song <wintermelons@google.com>
    Cr-Commit-Position: refs/heads/main@{#1520039}
2025-10-15 20:31:14 -04:00
Emerick Rogul 46dbe5fe34 [cr142][ios] MaterialComponents removed upstream
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/5068b9f045eb4ce7a2d57ea33998ddf60bea2a2c

commit 5068b9f045eb4ce7a2d57ea33998ddf60bea2a2c
Author: Sylvain Defresne <sdefresne@chromium.org>
Date:   Fri Sep 19 09:03:38 2025 -0700

    [ios] Remove MaterialComponents and its dependencies

    Those libraries are no longer used, so remove them from DEPS and
    git submodules.

    This is part of a multi CL change:
     -  http://cl/808555604
     -  https://crrev.com/i/8602518
     => https://crrev.com/c/6966159

    Fixed: 443947340
    Change-Id: I05ce8d11347e2cb3225653062dd520384725847b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6966159
    Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
    Reviewed-by: Rick Byers <rbyers@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1517995}
2025-10-15 20:31:06 -04:00
Kyle Hickinson b762265e7b [iOS] Support partition alloc (#31399)
This change adds a new embedded framework to support partition alloc on iOS and removes the `ios_partition_alloc_enabled = false` arg passed in.
2025-09-25 15:02:48 -04:00
Jay Harris 4f725b8124 [Nala]: Add script for bumping Nala (#30261) 2025-08-27 09:12:58 +09:00
Brian Johnson 2b7a2186f5 Fix ModuleNotFoundError: No module named 'distutils' in ios_boostrap.py (#30803)
Use vpython3 which still has distutils available
2025-08-25 17:16:52 -07:00
Brian Johnson 45b32bd16a Fix android component unit tests
Always continue on fail for `--output_xml`
fix json2xunit.py when elapsed_time_ms = null (crashes)
add missing data deps
2025-08-21 15:32:13 -07:00
Aleksei Khoroshilov b4d99011dd Use siso also in non-RBE builds. (#30419)
* Use siso for local-only builds.

* Generate some output for audit_deps step.

* Add a comment for audit_deps output.
2025-08-06 16:23:42 +07:00
Max Karolinskiy 92cdbab7de Updated l10n for 1.81.x release (lowered to master) (#30455)
* Updated l10n for 1.81.x release. (#30428)

* Adds an exception to strings name pattern.

* Updated l10n for 1.81.x release.

* Pulls fixed l10n strings to fix build error (1.81.x). (#30449)

Pulls fixed l10n strings to fix build error.
2025-08-05 14:50:42 -04:00
Max Karolinskiy 68eed4ef8a Adds Kazakh (kk) and Lao (lo) l10n locales. (#30412) 2025-08-05 11:02:51 -07:00
Aleksei Khoroshilov 52c7ff1dee Remove Page graph build dependency on args.gn (#30436)
* Expose page graph gn args via a separate file.

* Replace py patch with chromium_src patch.
2025-08-05 19:31:07 +07:00
Aleksei Khoroshilov e4cdfbe9a7 Enable SISO on Linux host with Brave-specific configuration (#30312)
Enable SISO by default for linux, mac, win targets built on host_os == "linux".
2025-08-01 18:28:16 +07:00
Michael Herrmann a0183aad2a Change BraveUpdater.app path in local checkout (#29986) 2025-07-17 13:11:42 +02:00
Brian Johnson e77cfdaab3 Output android test results in the same format as desktop when using --output_xml (#29870) 2025-07-15 05:23:29 +02:00
Aleksei Khoroshilov f9defae33c Print node error correctly on launch via presubmit. (#29987) 2025-07-14 14:08:53 +07:00
Max Karolinskiy bd9759a546 [l10n] Allow for pulling a single language. (#29751) 2025-06-27 08:35:20 -07:00
Kamil Jozwiak c8a4e2633f Merge pull request #29726 from brave/maxk-1.80.x-release-l10n
Updated l10n for 1.80.x release.
2025-06-24 17:06:02 -04:00
Brian Clifton cfa161e90d Remove the web torrent code from brave-core (#29320)
* Remove the web torrent code from brave-core

Fixes https://github.com/brave/brave-browser/issues/46430

Includes manual adjustment for `resources/resource_ids.spec`
2025-06-24 19:11:59 +02:00
Szilard Szaloki 568a52aad0 Fix-up. 2025-06-04 17:13:52 -06:00
Szilard Szaloki ef93802b57 Make build_crate use root_out_dir as its temp. 2025-06-04 12:07:40 -06:00
Jay Harris d9d45aa013 [AI Chat]: Remove TextEmbedder (#28874) 2025-05-29 14:31:24 +12:00
Kyle Hickinson c6a5ec1be0 [iOS] Add license information for Swift dependencies (#29065)
This change moves `third_party/ios_deps` to `ios/third_party` which matches Chromium and adds `third_party` entries for each dependency added in `brave-ios/Package.swift` so that they are correctly added to the licenses file
2025-05-16 00:54:48 +02:00
Brian Clifton 24bf1c5097 [uplift script] Add missing reference (#28739)
Add missing reference

Fixes https://github.com/brave/brave-browser/issues/45572
2025-04-18 11:54:35 -07:00
Brian Clifton 075810d0b5 [uplift script] Add new arg to copy CI/* labels (from the PR being uplifted) (#28713)
* Add new arg to copy "CI/*" labels from PR

Fixes https://github.com/brave/brave-browser/issues/45503

* presubmit fixes
2025-04-17 09:46:39 -07:00
Terry Mancey 7384296d4d [ads] Remove dependency on RapidJSON (#28607) 2025-04-12 02:18:30 +02:00
Jay Harris 022dfece1f [Lit]: Add build time mangler for lit-html templates (#27703) 2025-04-04 08:21:58 +13:00
Max Karolinskiy c67717786a Removes Transifex l10n scripts. (#28341)
We have switched to using Crowdin.
2025-03-31 10:25:45 -07:00
Szilard Szaloki 70c5352cb1 opaque-ke 2025-03-28 18:51:54 -06:00
yan 73296a312f add more cargo audit paths (#28198) 2025-03-26 09:06:17 -07:00
Artem Samoilenko f7e7504754 [Android] Add MultiInstanceInvalidationService to non-base services exception list 2025-03-18 20:02:22 -04:00
Michael Herrmann 6dfc7230c0 Rewrite macOS codesigning, DMG & PKG generation logic (#27610) 2025-03-05 20:14:20 +01:00
Max KarolinskiyandKamil Jozwiak d32fa3eb12 Updated l10n for 1.76.x release (lowered to master). (#27948)
Merge pull request #27921 from brave/maxk-1.76.x-release-l10n

Updated l10n for 1.76.x release.

Co-authored-by: Kamil Jozwiak <kamiljoz@gmail.com>
2025-03-04 15:13:40 -05:00
Sampson 18105e71c4 Update Custom Distillation Approach, Enable by Default (#27904)
* add an option to declare if an iife is desired or not
* bundle distiller scripts directly, opt-out of an iife
* provide default distillation level value
* fixes distiller execution

With distiller scripts no longer being wrapped in IIFE's (by Webpack), we have a simpler execution pattern (i.e., { %s distill() }). This means we no longer need to combine scripts, or wait for promises to resolve. Lastly, the map of host names to distillation preferences has been moved to the header, which seems to be a more appropriate location.

* sets default distillation level to FULL
* switches distiller scripts to enabled-by-default
2025-03-04 11:15:06 -06:00
Szilard Szaloki 0510251471 Merge pull request #27749 from brave/szilard/44132-sync-hook-for-downloading-rust-toolchain-aux
Sync hook for downloading `rust-toolchain-aux`.
2025-03-03 13:01:49 -07:00
Szilard Szaloki a894785eb7 Downloads rust-toolchain-aux. 2025-03-03 11:04:16 -07:00
Serg 02f227cc4a Moves BraveMediaNotificationControllerServices class into a base module (#27860) 2025-02-28 09:16:29 -05:00
Szilard Szaloki 3c4453d1ea brave-core changes 2025-02-12 17:56:19 -07:00
Szilard Szaloki c2444b324c brave-core changes 2025-02-12 15:40:52 -07:00
Max Karolinskiy bb1fac8993 Adds Python requirements file for l10n scripts. (#27531) 2025-02-07 13:35:09 -08:00
Max Karolinskiy 85e3ec5e09 Adds new locales to l10n. (#27535)
* Allow additional UI locales.

Remove the following locales from Chromium's exclusion list:

sq (Albanian)
az (Azeri)
my (Burmese)
ka (Georgian)
km (Khmer)
mk (Macedonian)
mn (Mongolian)
si (Sinhala)
sr-Latn (Serbian Latin)
uz (Uzbek)

* Adds locale_settings_*.grd files to l10n rebase scripts.

These files on Linux/Win/Mac are missing <output> elements for languages
we now support (az', 'ka', 'km', 'mk', 'mn', 'my', 'si', 'sq',
'sr-Latn', 'uz'). We use rebase scripts to insert them and add the
resulting .grd files under brave.

* Updates Brave .grd and .xtb files for added languages.
2025-02-07 11:39:00 -08:00
Szilard Szaloki 9d9a048d18 Merge pull request #27215 from brave/szilard/43273-adds-rust-to-wasm-support-to-transpile_web_ui
Adds `rust_to_wasm` and `rust_to_wasm` support to `transpile_web_ui`
2025-01-28 20:52:44 -07:00
Szilard Szaloki c75eb9e3b0 Removes transpile_web_ui's module_library_type 2025-01-28 18:05:33 -07:00
Szilard Szaloki 0cfe87104d Adds rust_to_wasm support to transpile_web_ui 2025-01-28 18:05:25 -07:00
Darnell Andries 71bda54430 Add Web Discovery content scraper, payload generator and privacy guard 2025-01-27 18:36:15 -08:00
Darnell Andries cf94b54d8b Bootstrap Web Discovery Native, add credential manager and server config loading 2025-01-27 18:22:39 -08:00