Commit Graph
511 Commits
Author SHA1 Message Date
yan e3d6464fff Address NPM audit alert 1762 (#9267)
Fix https://github.com/brave/brave-browser/issues/14423
2021-06-29 09:31:56 -05:00
Mihai PLESA 32b485f25d macos support on goma (#9116)
* macos support on goma
2021-06-17 21:48:59 +01:00
yan 9062571fb9 ignore advisory 1751 2021-06-10 14:48:10 -07:00
MaxandMihai PLESA 5f5c81251f Converts npm run pylint command to use js (#8782)
* Converts npm run pylint command to use js.

Currently `npm run pylint` triggers a shell script to run pylint.
This a) doesn't work on windows b) doesn't use correct path to pylint
because depot_tools isn't in the PATH.

This change adds the same functionality that the shell script provides
to our js scripts. It also adds depot_tools/python2-bin and python2-bin
to the PATH as recommended by Chromium.

* Modifies pylint script to work with folders.

Version of pylint that comes with depot_tools doesn't process
directories unless they have __init__.py file. To get around
this limitation we need to find all python files ourselves and
pass them to pylint.

This needs to accout for command line lenth limitation on Windows.

Also use different config files for python2 and python3.

* Added pylint resource file for python2

* Modified .pylint2rc the same as .pylintrc

* Ensure depot_tools is in the path when invoking pylint.

* TEMP: pylint testing.

* Update Jenkinsfile

* Update bump-version.py

* Update Jenkinsfile

Co-authored-by: Mihai PLESA <mplesa@brave.com>
2021-05-27 20:48:20 +01:00
yan 60e9e27d64 Update audit_deps ignore list (#8928)
fix https://github.com/brave/brave-browser/issues/16080
remove entries that are no longer needed
make parser compatible with npm 7
2021-05-27 19:15:31 +01:00
AlexeyBarabash 41c479ffaa Remove sync v1 leftovers; fixes brave/brave-browser#15791 2021-05-20 15:59:59 +03:00
Pete Miller 37b07e8bdc Merge pull request #8747 from brave/fix/audit-5-21 2021-05-13 16:36:55 -07:00
Pete Miller c96c61b554 Ignore npm audit security advisories for items which aren't updateable and aren't vectors that can be exploited in Brave
These are dev tool build-time paths, that are not used anyway
2021-05-13 14:56:45 -07:00
Max 552554306a [MacOS] Override helper-alerts entitlements for signing. (#8755)
* [MacOS] Override helper-alerts identifier for signing.

Alerts helper has been added for signing upstream but Chrome doesn't
distribute it yet. Because it uses the same identifier as the current
alerts service, we get a signing error.

For now we'll use a different identifier for this helper and then
revert once Chrome starts distributing the helper.

Fixes brave/brave-browser#15731

Chromium change:

https://chromium.googlesource.com/chromium/src.git/+/56915522276f

commit 56915522276f86acc55f86b143b4d7b260d6bc36
Author: Richard Knoll <knollr@chromium.org>
Date:   Fri Mar 5 16:07:34 2021 +0000

    Introduce alert notification helper .app

    This adds a new helper .app on macOS to display alert notifications.
    This app is required to show alert style notifications as the main app
    can only show banner style ones and the XPC service can not use the new
    UNNotification APIs.

    Bug: 1127306

* Pacify pylint for signing_helper.py
2021-05-12 02:12:45 +01:00
yan f42563e1b2 fix npm audit errors
* update jest
* update package-lock
* ignore npm advisory 1677
2021-05-11 10:00:38 -05:00
Max cb022ac5c4 Merge pull request #8307 from brave/cr91
Upgrade from Chromium 90 to Chromium 91.
2021-05-06 11:30:18 -04:00
mkarolin 5540de29f0 Revert "Adapts several py scripts to python3."
Looks like we are back to python2 for now.

This reverts commit 0f58435c0dfd2fe9279718b8708dceb8bfb00812.
2021-05-05 12:24:51 +02:00
mkarolin 93f49aebeb Modified check_chromium_src.py with the latest in/exclusions. 2021-05-05 12:24:50 +02:00
mkarolin 5300ddc222 Adapts several py scripts to python3.
print -> print()
subprocess.check_output return needs decoding from utf8
Queue -> queue
2021-05-05 12:24:50 +02:00
Brian R. Bondy 58087c00a6 Fix CI related issues
Fix html lang attribute error from CI
Fix unrelated Python errors for changes to the same file
2021-05-04 11:57:48 -04:00
Brian R. Bondy 10a224a336 Add webpack config to allow importing chrome:// URLs 2021-05-04 11:57:48 -04:00
Wojciech Knapik f75c60f8e0 Added a script to transform test reports on Android from json to xunit. (#8570) 2021-05-04 17:06:46 +02:00
Moritz Haller e15380cefc Enhance and refactor the Brave Ads component updater.
Enable a/b testing for different versions of a resource, e.g. text classification. Change name from UserModel to AdsResource and move code into the brave ads component. Finally removing the bat-native-usermodel dependency from ads.
2021-04-22 08:40:22 +01:00
Mihai PLESA dd268ba51d removed some unused python scripts (#8543)
* removed some unused python scripts

* more cleanup
2021-04-15 16:31:56 +01:00
Max 68a5b414c7 Merge pull request #8530 from brave/maxk-transifex-plural-strings-check
Fix bad formatting of l10n of plural strings.
2021-04-14 11:43:01 -04:00
mkarolin 2e4e93fef3 Modified Transifex script to check formatting on plural strings.
Checks that translation of strings in ICU plural format, similar to:
{ xxx, plural,
  =x {}
  other {}
}

is preserved in the translation strings.

Also fixed some pylint formatting indignations.
2021-04-13 16:18:16 -04:00
Michael Herrmann 2f6f0200cb Make Windows silent installer truly silent (#8364)
Before this commit, there were two silent installers: a 1 MB online
"stub" installer and a standalone installer. Both opened a Brave window,
so were not truly silent. To fix this, the online installer was removed
entirely. And the standalone installer was updated to be built from a
new version of the Omaha update framework, which passes the flag
`--do-not-launch-chrome` to Brave's installer.
2021-04-13 18:01:19 +02:00
Wojciech Knapik a7ff4b2211 Added base_branch validation in pylint.sh. (#8499) 2021-04-10 18:38:48 +02:00
Wojciech Knapik 8fdbb7f667 Added npm scripts to run pylint and added .pylintrc to control suppressions and other options. (#8489) 2021-04-10 16:39:41 +02:00
mkarolin 3c2bfbdd26 Minor adjustments to transifex script.
- Added <li1> and <li2> to allowed tags
- Added replacing \\" with " in addition to already replacing \"
2021-04-09 15:10:42 -04:00
Anton Lazarev 2ffc9bdc96 support building on both python 2 and 3 2021-04-08 14:00:06 -07:00
Wojciech Knapik 69d36dc31c Fixed pylint findings in audit_deps.py. (#8400) 2021-03-31 18:20:20 +02:00
Mihai PLESA de0de82a00 goma support (#8252) 2021-03-30 22:32:04 +01:00
Wojciech Knapik 350ee2da92 Added a comment per review. 2021-03-24 22:54:08 +01:00
Wojciech Knapik 92d06ab746 Fix. 2021-03-24 22:03:54 +01:00
Wojciech Knapik 480c580c6f Modified audit_deps.py to only do cargo audit on whitelisted paths. 2021-03-24 18:32:09 +01:00
Max 2aa85afeef Merge pull request #8269 from brave/maxk-fix-rebase-l10n
Fixes brave_strings_override.grd to include a missing grdp override.
2021-03-17 10:29:39 -04:00
mkarolin b73bae3184 Fixes brave_strings_override.grd to include a missing grdp override.
Because brave_strings.grd and settings_brave_strings.grdp are special
cases in terms of naming, the rebase script wasn't adding the GRDP
override to the GRD override.

Addresses brave/brave-browser#14750

Doesn't fix the actual translations, but we should get them the next
time we order.
2021-03-16 20:12:25 -04:00
Anton Lazarev 1d1eea041e Merge pull request #8209 from brave/merge-adblock-rust-ffi
Merge adblock_rust_ffi into brave-core repo
2021-03-16 17:00:21 -04:00
Mihai PLESA 251090234e reverted linux arm64 support (#8259) 2021-03-15 23:10:43 +00:00
Mihai PLESA 5a76a8c87f Linux arm64 support (#6927)
* linux arm64 support
2021-03-14 01:03:08 +00:00
Mario Sanchez Prada d701573c30 Remove no longer needed check_chromium_src.sh script
This is not needed anymore now that it has migrated to python
in a previous commit, so it can be removed.

Fix https://github.com/brave/brave-browser/issues/14382
2021-03-11 23:07:43 +01:00
Mario Sanchez Prada 01410d8c4c Merge pull request #8087 from brave/issues/14382
Rewrite the check_chromium_src.sh bash script in python
2021-03-11 17:06:26 +01:00
Anton Lazarev 7bdf27caf9 update adblock_rust_ffi path from vendor to components 2021-03-10 10:12:43 -08:00
Aleksey Khoroshilov becdcde353 Add redirected-cc ninja dependency on windows builds 2021-03-10 23:57:24 +07:00
Mario Sanchez Prada 5c7b656061 Make EXCLUDES regexp list work on non-UNIX-like shells (e.g. Windows)
To make this work well on shells like Windows' cmd.exe or PowerShell,
we add an intermediate step before matching the paths for files found
in the repository against the regular expresisons declared in EXCLUDES,
so that we use forward slashes instead of backward slashes, which will
cause errors due to the regexp interpreting paths like C:\\mypath as if
they contained the escaped '\m' character.

Once the regular expression has been used though, we still append the
unnormalized OS-dependant relative path to the list of paths built by
filter_chromium_src_filepaths(), so that further operations over those
files can be performed correctly, and so that any path printed in the
output will use the OS-dependant path separator.
2021-03-10 10:41:58 +01:00
Mario Sanchez Prada 90458f6e77 Avoid Unicode decoding-related errors by opening files as utf-8
Otherwise some errors might happen on Windows when reading through
the files' contents searching for matches against regexp patterns.
2021-03-02 17:19:24 +01:00
Mario Sanchez Prada 91607f7b23 Rename global variables to something more consistent and less confusing
To make it clearer where each global variable points to, rename:
  * SOURCE_ROOT -> BRAVE_SRC
  * CHROMIUM_SRC -> BRAVE_CHROMIUM_SRC
  * SRC_DIR -> CHROMIUM_SRC
2021-03-02 17:09:34 +01:00
Mario Sanchez Prada e63bf0aad3 Fix problems with relative paths on Windows
We can't use the OS path separator when handling C++ include paths but
UNIX-like path separators instead, otherwise counting the number of
'../' components wont' work, nor creating the list of relative paths
to chromium_src override files to be checked.
2021-03-02 17:06:01 +01:00
Mario Sanchez Prada 867f9726ce Rewrite the check_chromium_src.sh bash script in python
We would like to expand the functionality of this script to allow us
to check for more potentially problematic situations (e.g. new uses
of re-defined symbols inside a given overriden file), so let's migrate
it to Python first so that's easier to extend.

Resolves https://github.com/brave/brave-browser/issues/14382
2021-02-26 17:26:15 +01:00
bridiver 2e95360400 lint fixes 2021-02-17 16:17:24 -07:00
bridiver 8c6024676d ensure rust libs are rebuilt when listed files change
add rust templates to simplify configuration
fix https://github.com/brave/brave-browser/issues/13320
2021-02-17 12:03:14 -07:00
Brian Clifton e1275f602c Update uplift template
Fixes https://github.com/brave/brave-browser/issues/14052
2021-02-08 23:20:05 -07:00
mkarolin 00d40e8506 Fixes redirect-cc.py for 64-bit ARM builds.
Fixes brave/brave-browser#13825
2021-01-28 19:56:31 -05:00
mkarolin 6a9db8fab7 Disable serveral blink runtime features.
Fixes brave/brave-browser#11133
Fixes brave/brave-browser#11407
Fixes brave/brave-browser#11546
Fixes brave/brave-browser#11547

- Disables features via Chromium features:
  * Direct Sockets
  * Lang Client Hint Header
  * Signed Exchange Prefetch Cache For Navigations
  * Subresource Web Bundles

- Disabled the following blink features in
  BraveContentRendererClient::SetRuntimeFeaturesDefaultsBeforeBlinkInitialization
  since they don't have Chromium features:
  * Digital Goods
  * Native File System (File System Access)
- Added browser tests for these features

- Modified redirect-cc.py to allow overriding files under out/XXX/gen

- Added an override for blink::origin_trials::IsTrialValid and overrides
  for blink::OriginTrialContext methods AddFeature and AddForceEnabledTrials
  for trials:
  * NativeFileSystem2
  * SignedExchangeSubresourcePrefetch
  * SubresourceWebBundles
- Added browser tests for trials disablement.
2021-01-27 16:31:01 -05:00