Commit Graph
954 Commits
Author SHA1 Message Date
Serg 87688a24d8 Adds a browser test for search 2021-03-30 22:57:32 -04:00
Alex C eb75ca33ca [Android] added missing dep 2021-03-29 16:10:44 -04:00
Alex C 69db08efce [Android] added required dep to test/BUILD.gn 2021-03-29 14:49:33 -04:00
Serg cf8219a057 Merge pull request #8296 from brave/custom_web3_provider
Custom web3 provider
2021-03-25 18:11:22 -04:00
Sergey f989bb2ea8 Moved tests out of components to fix dependencies 2021-03-25 12:26:36 +03:00
Brian R. Bondy 64a3778dc7 Move wallet browser code to components/brave_wallet/browser 2021-03-24 15:27:42 -04:00
mkarolin 400c24eef6 Sync engine_impl has been merged into engine.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/d00f800f7d6372decfce0f897c54bab3e43e99b1

commit d00f800f7d6372decfce0f897c54bab3e43e99b1
Author: Victor Hugo Vianna Silva <victorvianna@google.com>
Date:   Mon Feb 1 15:18:45 2021 +0000

    [Sync Model/Engine split] Merge {model,engine}_impl with {model,engine}

    The distinction between the impl and non-impl directories has become
    unclear over time, as well as the dependencies between them. This CL
    merges them. This will allow us to create separate build targets for
    engine/ and model/ (model/ depends on engine/). Subdirectories are
    merged correspondingly, e.g. engine_impl/cycle/ is merged with
    engine/cycle/.

    Orthogonal to this, we remove 1 unnecessary engine/ dependency from
    components/password_manager/core/browser/DEPS, and make some net/
    dependencies more specific in sync/ DEPS.

    Bug: 947443
2021-03-23 15:01:30 -04:00
Max Karolinskiy 6464e5e5a9 Fixes brave_unit_tests dependency.
On MacOS:

Undefined symbols for architecture x86_64:
  "vtable for FakeSystemGeolocationPermissionsManager", referenced from:
      TestingBrowserProcessPlatformPart::TestingBrowserProcessPlatformPart() in libtest_support.a(testing_browser_process_platform_part.o)
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/63eb7e0f2322359ca1214224c346ad02f5e0264e

commit 63eb7e0f2322359ca1214224c346ad02f5e0264e
Author: James Hollyer <jameshollyer@google.com>
Date:   Wed Feb 24 03:02:40 2021 +0000

    Don't use Core Location after update

    After an update the binary on the disc is different from the one
    in memory until restart. While in this state if Core Location is
    accessed macOS removes location permission. We are currently only
    using Core Location to check for current permission status.
    This fix consolidates the permission state manager to a single
    object that is created and owned by the BrowserProcess. This status
    is cached in that object and accessed when needed throughout the
    application.

    The CoreLocationProvider is currently behind a flag that is disabled
    by default. More work is needed to ensure that class does not access
    Core Location while in a broken signed state before that flag can be
    enabled.

    Bug: 1143807
2021-03-23 14:55:41 -04:00
samartnik b0ad2a1036 [Android] androidx dependencies switched to use //third_party/androidx
Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/0409372615dde3d990738a730b6f784d695bf678

[Build] Switch androidx dependencies to use //third_party/androidx

This CL switches depenendencies on the
//third_party/android_deps:androidx alias to refer to
//third_party/androidx instead.

This CL was generated via:
find . -name *.gn -exec sed -i 's/android_deps:androidx/androidx:androidx/g' {} +

BUG=1064277
2021-03-23 14:55:33 -04:00
samartnik 0cda510839 [Android] Fix for unit tests 2021-03-23 14:55:26 -04:00
AlexeyBarabash 1d92234fc2 Test for BraveIdentityManager::GetAccountsInCookieJar
Fixes brave/brave-browser#14217

Chromium changes:
https://chromium.googlesource.com/chromium/src.git/+/dcdd123f162664500d3976cdcb8e575ad8711bcf
https://chromium.googlesource.com/chromium/src.git/+/0ff6cfd2ae2f17dd8f99ae09f04b0fb24fd2a09f
https://chromium.googlesource.com/chromium/src.git/+/e60c93afaa485a6641ccd26222581626f74a7cac
2021-03-23 14:55:26 -04:00
mkarolin 423bb48dd9 RAPPOR infrastructure has been removed.
Chromium change:

https://chromium.googlesource.com/chromium/src.git/+/2d96608b432cb9c2e1b82ba11f73e07f95861f58

commit 2d96608b432cb9c2e1b82ba11f73e07f95861f58
Author: Alexei Svitkine <asvitkine@chromium.org>
Date:   Thu Feb 4 23:25:06 2021 +0000

    Remove RAPPOR reporting infrastructure.

    Only a handful of metrics were still reported using this, which
    are have been confirmed to be OK to remove.

    Includes code to clear the obsolete rappor prefs.

    Bug: 1016906
2021-03-23 14:55:14 -04:00
mkarolin 30d4a807d6 Formatting fixes. 2021-03-23 14:55:07 -04:00
samartnik b975957bab [Android] Removed new section in settings
It is not used in Brave at the moment

Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/a8c85be9b64f54fe88ae0b25206451cc983bf237

Safety check on Android: enabled on ToT

Bug: 1070620
2021-03-23 14:55:04 -04:00
Mario Sanchez Prada c5acd1be39 Adapt usage of deprecated "whitelist" manifest key for "allowlist"
This is no longer supported after a period of supporting the old
"whitelist" key along with the new "allowlist" one, but now we
need to migrate for real.

Chromium changes:

https://chromium.googlesource.com/chromium/src.git/+/dc12ff7d11e5de868005e17df701d8b0c3730a1c

commit dc12ff7d11e5de868005e17df701d8b0c3730a1c
Author: Karandeep Bhatia <karandeepb@chromium.org>
Date:   Thu Jan 14 14:19:40 2021 +0000

    Use auto-generated manifest parsing for import, export manifest keys.

    Also
     - Remove support for legacy export.whitelist manifest key.
     - This also revealed that json_schema_compiler doesn't correctly handle
    C++ reserved keywords (like export) correctly in the auto-generated code
    since using them directly causes compilation errors. Fix this.

    BUG=1113513, 842354

https://chromium.googlesource.com/chromium/src.git/+/9486b056f09a97fb2ba5ebb1b4c00f2dae6630c4

commit 9486b056f09a97fb2ba5ebb1b4c00f2dae6630c4
Author: Devlin Cronin <rdevlin.cronin@chromium.org>
Date:   Fri May 18 05:42:04 2018 +0000

    [Extensions] Use `allowlist` in SharedModule code

    Rename the shared module property to 'allowlist'. The legacy 'whitelist'
    key will continue to work until we update any uses of it.

    Bug: 842354
2021-03-23 14:54:56 -04:00
AlexeyBarabash ecc7566aa8 Merge pull request #8201 from brave/sync_reset_progress_marker
Reset of progress marker for sync type failed by conflict
2021-03-22 15:48:15 +02:00
AlexeyBarabash c2f1238a58 Unit test for reset sync progress marker on commit error 2021-03-19 17:28:10 +02:00
Brian R. Bondy b31185e875 Revert "Merge pull request #8299 from brave/revert_8257"
This reverts commit 96aebb9ee6, reversing
changes made to 7e073b26c1.
2021-03-18 20:26:48 -04:00
Jocelyn Liu 25a3c5c48d Revert "Merge pull request #8257 from brave/ipfs-android"
This reverts commit 534a1e122d, reversing
changes made to 103be2b8c1.
2021-03-18 14:02:59 -07:00
Brian R. Bondy 7f0bc31b89 Add IPFS gateway support on Android 2021-03-17 13:09:14 -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
Brian R. Bondy 10ff512791 Change hamburger menu from Crypto Wallets -> Wallet 2021-03-12 22:36:13 -05:00
Anthony Tseng 1981cc2c82 Fix control port string overflow 2021-03-12 08:40:06 -08:00
Anton Lazarev 7bdf27caf9 update adblock_rust_ffi path from vendor to components 2021-03-10 10:12:43 -08:00
sergey 63dd112b2a Add support for DNSLink resolution
13609: Added an Open in IPFS option for domains that have a TXT record that is prefixed with dnslink=
13611: Add a setting to automatically redirect for DNSLink
2021-03-09 21:40:24 +03:00
Jocelyn Liu 8cefa12442 npm run format 2021-03-05 19:25:54 -08:00
Jocelyn Liu 302ec9fb78 s/unstoppable_domains/decentralized_dns for adding support of different providers 2021-03-05 19:25:52 -08:00
Mario Sanchez Prada 434154a227 Fix build of upstream Chromium's unit_tests & browser_tests targets
Three build failures are currently preventing us from building these
unit_tests & browser_test binaries from upstream:

1. A compilation error due to FakeDeviceInfoTracker not implementing
   Brave-specific's GetAllBraveDeviceInfo() and DeleteDeviceInfo()
   virtual methods from DeviceInfoTracker (added via an override).

2. A compilation error in //c/b/apps/guest_view/web_view_browsertest.cc
   because of testing code using RenderViewContextMenu's static method
   RegisterMenuShownCallbackForTesting(), which would expect a callback
   |base::OnceCallback<void(RenderViewContextMenu_Chromium*>| because
   of the source override in chromium_src/c/b/renderer_context_menu, but
   a |base::OnceCallback<void(BraveRenderViewContextMenu*)>| will be
   passed instead due to the redefinition set in that source override.

3. A linking error due to push_messaging_service_unittest.cc requiring
   a dependency for BraveTestingProfile (also added via an override).

This patches fixes all those three errors via chromium overrides.

Fix https://github.com/brave/brave-browser/issues/14001
2021-03-05 21:24:16 +01:00
Mark Pilgrim ed575810f1 Implement first-party domain blocking 2021-03-04 17:41:59 -05:00
Anthony Tseng 86baff8134 Add unit test for TorFileWatcher 2021-03-03 11:36:24 -08:00
Jocelyn Liu 61ab97f20e Add tests 2021-03-02 15:04:09 -08:00
Simon Hong 5dc84a246c Improve topsites in NTP
* Adjust max topsite tiles number to 12
* Can add/edit topsites from NTP
* Can toggle favorites and frecency mode from NTP customization option

fix https://github.com/brave/brave-browser/issues/7493
2021-03-02 09:54:30 +09:00
Brian R. Bondy c82a998222 Merge pull request #8017 from brave/diff-networks
Add support for setting different networks in ETH JSON RPC controller
2021-02-22 12:40:10 -05:00
Brian R. Bondy a74aa12392 Add unit tests for setting the network for ETH JSON RPC 2021-02-22 10:19:39 -05:00
Mario Sanchez Prada b39991fbf1 Remove usage of BRAVE_CHROMIUM_BUILD and brave_chromium_build
It will assumed from now on that all of Brave's own code plus patches
to upstream Chromium will always be built and run as part of a Brave
build, so we can drop these guards and reduce the patching surface.

Note that github.com/brave/brave-browser/wiki/Patching-Chromium should
also be updated to reflect the change implemented in this patch.

Fix https://github.com/brave/brave-browser/issues/12740
2021-02-22 12:19:42 +01:00
Brian R. Bondy bc1276cbef Add ETH JSON RPC tests 2021-02-19 12:46:28 -05:00
Brian R. Bondy dc64a97960 Merge pull request #7918 from brave/feature-13655
Use interstitial page instead of infobar for ipfs
2021-02-18 23:42:36 -05:00
Anton Lazarev e6ff8aa477 Merge pull request #7882 from brave/ephemeral-storage-qa-testpage
Add automation for tests from ephemeral storage QA test page
2021-02-18 18:25:43 -08:00
Anton Lazarev f934ff475d add automation for tests from ephemeral storage QA test page 2021-02-18 18:21:49 -08:00
samartnik 9711fefdd4 Merge pull request #7997 from brave/android_share_proguard
[Android] Added main proguard exceptions for tests
2021-02-18 12:16:55 -05:00
Kevin Smith 6a45b3fa62 Merge pull request #7498 from brave/ksmith-ledger-testing
Move ledger database tests from browser to unit tests
2021-02-18 10:27:30 -05:00
samartnik bbd56259b5 [Android] Added main proguard exceptions for tests
This allows to share the same exceptions for methods for invocation in
both test and regular apks.
2021-02-18 09:23:34 -05:00
Sergey 4ed54ecb36 Use full page explainer for unconfigured ipfs:// loads instead of loading content with an infobar 2021-02-18 09:23:48 +03:00
Simon Hong 0cad0cab31 Merge pull request #7978 from brave/split_p3a_crash_report_firstrun
Splited p3a from crash report option from first run dialog
2021-02-18 09:36:13 +09:00
zenparsing f9507f2463 Move ledger database tests from browser to unit tests 2021-02-17 15:30:28 -05:00
bridiver 663372e943 lint fixes 2021-02-17 12:05:46 -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
samartnik 49e7fce600 [Android] Removed check passwords preference 2021-02-17 10:43:13 -05:00
Simon Hong 3c6abb0b62 Splited p3a from crash report option from first run dialog
p3a prefs would not be affected by first run dialog.
crash report checkbox is unchecked by default.

fix https://github.com/brave/brave-browser/issues/14183
fix https://github.com/brave/brave-browser/issues/14160
2021-02-17 10:58:06 +09:00
Anton Lazarev cf2c1a580f add test for service worker adblocking 2021-02-10 07:56:48 -08:00