Commit Graph
704 Commits
Author SHA1 Message Date
Claudio DeSouza 71d5db8ab4 Removing rapidjson brave fork
New clang version have been triggering warnings on the forked version of
rapidjson being used by brave. There's work under way to remove
rapidjson entirely from the codebase, but that has proven to be a bit
more challanged than initially expected.

This change removes the use of the rapidjson brave fork, which was
created mainly to have a .gn file in the root path, and uses the
original rapidjson repo to clone it from.
2022-11-14 14:10:59 -05:00
Cepera 5bef31743c Added BraveShieldsDisabledForUrls and BraveShieldsEnabledForUrls policies (#15409)
* Added ShieldsEnabledForUrls and ShieldsDisabledForUrls policies
2022-11-08 17:52:40 +03:00
Aleksey Khoroshilov 43eaee3eb8 Use -mx7 by default for 7z archives. 2022-11-07 12:54:30 +07:00
Aleksey Khoroshilov dbc7d28167 Archive native symbols to 7z. 2022-11-07 12:54:25 +07:00
Aleksey Khoroshilov 9f6ead6b57 Merge pull request #15355 from brave/issues/25517
Add chromium PRESUBMIT configuration support.
2022-10-28 21:41:50 +07:00
mkarolin 9f783023be Fixes regex patter for verifying ICU plural syntax strings. 2022-10-24 21:24:16 -04:00
bridiver 3f73bf5038 bump to rust 1.59 2022-10-20 11:02:59 -04:00
Mihai PLESA 05c66bd783 Revert "Bump rust package to 1.1.0 (1.62.1)" (#15566) 2022-10-20 09:34:47 -04:00
bridiver 3dabc93130 Bump rust package to 1.1.0 (1.62.1) 2022-10-19 14:54:38 -07:00
zenparsing 513b048e73 Remove the Brave Rewards extension 2022-10-19 16:07:33 -04:00
Aleksey Khoroshilov 00da57f2da Add chromium PRESUBMIT configuration support. 2022-10-18 21:58:09 +07:00
Terry Mancey f0f4a6b8e0 Remove unused bat-native-anonize DEP 2022-10-17 16:11:29 -05:00
Brian Johnson 2b85547277 Merge pull request #15350 from brave/issues/25805
Remove executable bits from sources, add shebang to python executables.
2022-10-12 12:11:06 -07:00
Mikhail 0e7eb8ff56 Introduce scripts to run performance tests (#14693)
* Introduce performance test run scripts

* Fix license errors

* Refactor browser_type to fix chrome downloading

* Fix some minor issues

* fix pylint warning

* git cl format

* update chrome_releases.json

* allow tag be empty

* Migrate to vpython3

* Use text mode for subprocess

* fix comments

* Fix chrome-typical config

* Update patches 1

* Update patches 2

* Update patches 3

* Update patches 4

* update chrome_releases.json

* Fix reporting _ref metrics

* update import_inline path in patches

* update override_utils path in patches

* Fix review issues, add override_method

* Rework .reference logic

* override_method fixes

* Update annotations

* Revert types.MethodType()

* git cl format

* fix pylint warnings

* Remove auth script until bots are not ready

* Rename some modules

* Fix some Sonar warnings

* Fix .py files headers
2022-10-11 03:09:13 +07:00
Aleksey Khoroshilov fc4d5dfe6b Add missing shebangs. 2022-10-05 22:07:49 +07:00
Anton Lazarev be5e82f136 Merge pull request #14475 from brave/adblock-rust-ios-content-blocking
Add content blocking conversion method for iOS
2022-09-30 14:10:46 -07:00
Anton Lazarev ea596b16a3 pass ios feature to cargo build 2022-09-30 10:10:04 -07:00
mkarolin 82724ebca8 Adds a policty to disable Brave Wallet. 2022-09-30 09:40:08 -04:00
Aleksey Khoroshilov f00c1f27da Add browser_protocol.pdl brave/chromium_src merge solution. 2022-09-26 23:24:44 +07:00
Aleksey Khoroshilov bbd23a5b59 Add some python script improvements. 2022-09-26 23:24:40 +07:00
mkarolin c3074a6ebf Adds a policy to disable Brave Rewards. 2022-09-16 20:04:24 -04:00
Emerick Rogul 4d73487fa3 LZMA executable moved on Windows and also use Mac executable
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/d8cc01ec95f50e75b972b4285192f12277a30595

commit d8cc01ec95f50e75b972b4285192f12277a30595
Author: Xiaoling Bao <xiaolingbao@chromium.org>
Date:   Fri Aug 5 18:57:24 2022 +0000

    Check in lzma 7zz command for mac.

    The 7zz command originates from: https://7-zip.org/a/7z2107-mac.tar.xz.
    Created lzma_sdk/bin/mac64 folder for the new binary.
    sha1 hash digest:
    c62266f7da3108bef870086c456d002ae8ffe089
    sha256 hash digest:
    c194cd5b88d5cf5842df4f6e5b082ac593780aabc221de01558a4fa58850c43e

    Moved lzma_sdk/bin/7z*.exe to lzma_sdk/bin/win64/7z*.exe and updated the references.

    Bug: 1348343
2022-09-15 20:46:20 -04:00
Francois Marier a6a7841f81 Improve license check error message (fixes brave/brave-browser#25261) 2022-09-07 16:18:07 -07:00
Aleksey Khoroshilov 988e770849 Look for src/ dir starting from __file__. 2022-09-05 13:51:28 +07:00
Aleksey Khoroshilov b587f7ef36 Update override_utils imports. 2022-09-05 13:50:55 +07:00
Aleksey Khoroshilov a6660a0c1d Move files to brave/script. 2022-09-05 13:31:02 +07:00
Sangwoo Ko 621d6fdd3b Allow users to select a specific 'Brave Background' (#14867)
* Allow users to select a specific 'Brave Background'

Previously, users couldn't select a specific 'Brave Background' image.
With this PR, A chooser for 'Brave Background' images is added and
toggle button for using 'Brave Background' as is(rotating) is added.

* Implement WebUI for Brave background chooser
  * `BraveBackground` was added
  * Reuse most of existing UI component.
    * ColorChooser => BackgroundChooser
    * ColorBackgroundOption => BackgroundOption

* Introduce new mojo types and function
  * `BraveBackground` type
  * `Background` type : union of `CustomBackground` and `BraveBackground`
  * `GetBraveBackgrounds` function: For setting UI to show 'Brave
    Background' images in a chooser, web ui should know all brave backgrounds.
    This function is for getting all brave backgrounds.

* Implement backend behaviors
  * Returns Brave backgrounds from NTPBackgroundImageData to webui
  * When users select a 'Brave background', save its URL using `NTPBackgroundPrefs`
  * `NTPCustomBackgroundImageService` checks if user has selected a 'Brave background'.
    In this case, `NTPCustomBackgroundImageService` will return the selected 'Brave background'.
    i.e. ViewCounterService won't return the background.

* Fix up invalid data and fallback to random background
2022-09-02 15:40:58 +09:00
mkarolin 03cbcb0ff7 Fixes replacement of Chromium -> Brave in XTBs in Hindi/Nepali. 2022-08-30 18:13:44 -04:00
mkarolin 529d1a5e53 Add more fixes for commonly misformatted Transifex strings. 2022-08-26 11:35:44 -04:00
mkarolin c12af148bd Do not replace ChromeVox in strings. 2022-08-23 00:19:33 -04:00
mkarolin acc40e803f LZMA executable moved.
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/3fa36902563c565b6c1e7811b7e431a533529a82

commit 3fa36902563c565b6c1e7811b7e431a533529a82
Author: Michael Chang <donchan@microsoft.com>
Date:   Fri Jul 1 19:15:57 2022 +0000

    Clean-up //third_party/lzma_sdk folder

    As part of updating the lzma_sdk, clean up the folders and put them into different subfolders. This puts the files in a more similar
    organization to the original lzma sdk. Fix up other files to have
    correct includes.

    Bug: 1334732
2022-08-23 00:19:18 -04:00
samartnik 0e86e95641 [Android] Stop generating unsupported policies on android
Chromium change:
https://github.com/chromium/chromium/commit/727acdb62db2d878f9a4675677c297c00ec79b51

Reland "Stop generating unsupported policies on android"
Reason for reland: Fix issue from crbug.com/1344410

Original change's description:
> Stop generating unsupported policies on android
>
> This CL also enables the MaxConnectionsPerProxy policy on Chrome OS.
>
> Bug: 223616
> Change-Id: I8205d38d11b427630bbfedf4e83d50d089bbe8b0
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3751298
> Reviewed-by: Alex Ilin <alexilin@chromium.org>
> Commit-Queue: Yann Dago <ydago@chromium.org>
> Reviewed-by: Owen Min <zmin@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1023956}

Bug: 223616, 1344410
2022-08-23 00:19:00 -04:00
Aleksey Khoroshilov 231ee9bc5e Make inline and override helpers usable more widely. 2022-08-17 19:42:50 +07:00
Michael Herrmann fc8ba308f9 Allow picking the Authenticode certificate by hash 2022-08-17 09:25:14 +02:00
Wojciech Knapik 5da8e73bb3 Switched from using hardcoded ignore lists in audit_deps.py to fetching from a separate repo (#14405) 2022-08-03 01:10:34 +02:00
Max 369976146c Merge pull request #14325 from brave/maxk-transifex-upload-translations
Transition to using brave_en Tansifex project
2022-07-27 16:18:24 -04:00
Kyle Den Hartog a17cbecba4 Add GHSA-4wf5-vphf-c2xc to the ignore list
https://github.com/advisories/GHSA-4wf5-vphf-c2xc is a ReDoS attack that we're not concerned about so disabling this alert.
2022-07-26 20:55:57 +12:00
mkarolin 6f2513adc2 [l10n] Account for incorrect IRD_ string prefix in Chromium. 2022-07-25 15:54:58 -04:00
mkarolin 2b66a65ff3 [l10n] Remove etherium-remote-client related code.
We don't use their l10n any more.
2022-07-25 15:54:57 -04:00
mkarolin 138383237f [l10n] Remove no longer needed .message suffix for extension strings. 2022-07-25 15:54:57 -04:00
mkarolin 7b76aa4933 [l10n] Switch to using brave_en project in Transifex. 2022-07-25 15:53:07 -04:00
mkarolin e37dfc25c2 [l10n] Allow uploading local translations to Transifex. 2022-07-25 15:53:01 -04:00
Brian Clifton 489fcb35d0 Merge pull request #14314 from brave/bsc-ignore-audit-GHSA-mhxj-85r3-2x55
Add ignore for advisory
2022-07-25 09:13:03 -07:00
Brian Clifton 2ce652cb99 Add ignore for advisory
Fixes https://github.com/brave/brave-browser/issues/24239
2022-07-25 08:53:32 -07:00
Ahmed Kamal aff9e8432c Uplift scripts py2 and py3 compatibility (#14182)
* Initial port

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* cleanup unused imports and exception vars

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* cleanup unused imports and exception vars

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* cleanup unused imports and exception vars

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* some fixes for pylint

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* some pylint fixes

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>
2022-07-25 09:44:42 -05:00
Ahmed Kamal 790e23a944 Fix reference not a tree (#14175)
Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>
2022-07-25 15:30:20 +02:00
Ahmed Kamal 8695d6a274 Allow uplifting unmerged prs (#14202)
* Allow uplifting unmerged prs

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* remove outdated comment

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* Allow uplifting unmerged prs

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* remove outdated comment

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* Use print() syntax

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>
2022-07-21 14:42:01 +02:00
Brian Clifton 63c3aca378 Add ignore for warning triggered on dev-dependencies
Fixes https://github.com/brave/brave-browser/issues/24115
2022-07-19 13:24:21 -07:00
Simon Hong 173e512490 Revert "Skip license checking for temp dirs created during the sync (#13585)"
This reverts commit cdfeb5cdd4.
2022-07-12 13:09:32 +09:00
Michael Herrmann 32ff5abadd Enable cross-compilation from Linux to Mac (#13537)
* Enable cross-compilation from Linux to Mac
2022-07-07 15:28:56 -05:00