Commit Graph
4659 Commits
Author SHA1 Message Date
zenparsing 3f3b05f5ef Allow fractional tipping amounts in the tip dialog 2021-03-31 15:48:32 -04:00
Serg e7667f508f Merge pull request #8338 from brave/fetch_search_backup_results
Injects window.chrome.fetchBackupResults
2021-03-31 10:39:33 -04:00
Mark Pilgrim 2007b78141 Merge pull request #8320 from brave/mpilgrim_ua_mobile
Fix farbled user agent on mobile
2021-03-31 10:09:28 -04:00
Serg 87688a24d8 Adds a browser test for search 2021-03-30 22:57:32 -04:00
Kevin Kuehler 2fd5f2e5ad referrals: stats: Always RETRY_ON_NETWORK_CHANGE
Resolves https://github.com/brave/brave-browser/issues/15034
2021-03-30 19:21:40 -07:00
Serg ddf9a2b3b4 Fixes code review suggestions 2021-03-30 22:19:41 -04:00
Serg 9e42e85322 Injects window.chrome.fetchBackupResults 2021-03-30 22:19:41 -04:00
Sergey P ec79b94bac Change IPFS dialog UI to default 2021-03-30 07:17:40 +03:00
sergey 0945316ecf Add ipfs page info bubble 2021-03-30 07:17:40 +03:00
Sergey a66e24a3d3 Merge pull request #8366 from brave/stop-node-settings
Stop node if switched from local node to another option
2021-03-29 17:04:53 +03:00
Mark Pilgrim 6bd2b06b47 Fix farbled user agent on mobile 2021-03-26 20:56:52 -04:00
zenparsing f3daf96775 Fix validation error for braveRewards.getPanelPublisherInfo 2021-03-26 14:07:33 -04:00
Sergey P ace6f84085 Stop node if switched from local node to another option 2021-03-26 18:44:35 +03:00
Serg cf8219a057 Merge pull request #8296 from brave/custom_web3_provider
Custom web3 provider
2021-03-25 18:11:22 -04:00
sergey 808f408f85 Fix android build 2021-03-25 20:29:37 +03:00
Serg c86eb15346 Fixes code review suggestions 2021-03-25 11:14:32 -04:00
Sergey bc2c7e2783 Merge pull request #8313 from brave/interstitial-tests
Add browser tests to ipfs interstitial pages
2021-03-25 16:49:27 +03:00
Sergey f989bb2ea8 Moved tests out of components to fix dependencies 2021-03-25 12:26:36 +03:00
Emerick Rogul 553b9d48a5 Hide Brave Rewards toggle doesn't work after launching private window 2021-03-24 22:01:17 -04:00
Serg 2ec453742c Fixes code review suggestions 2021-03-24 15:27:42 -04:00
Brian R. Bondy 64a3778dc7 Move wallet browser code to components/brave_wallet/browser 2021-03-24 15:27:42 -04:00
Serg 7424cba072 Web3 custom provider code review fixes 2021-03-24 15:27:42 -04:00
Serg 05587fe9f4 Propogates brave web3 provider pref to renderer 2021-03-24 15:27:42 -04:00
Serg c933857da3 adds custom web3 provider build flag and feature check 2021-03-24 15:27:42 -04:00
Serg 17dbb6c862 adds brave_wallet mojo interface 2021-03-24 15:27:42 -04:00
Serg efc1f2c757 injects window.ethereum object into all frames 2021-03-24 15:27:42 -04:00
Sergey 770fde7c19 Merge pull request #8328 from brave/add-cid-validation
Added simple cid validation
2021-03-24 09:55:22 +03:00
Max dd270fb461 Merge pull request #7866 from brave/cr90
Upgrade from Chromium 89 to Chromium 90.
2021-03-23 21:46:08 -04:00
Brian Clifton cb524b0f4e Merge pull request #8336 from brave/devtools_no_adblock
Prevent devtools requests from getting intercepted by adblock
2021-03-23 16:43:02 -07:00
Sergey 7e2560e589 Added simple cid validation 2021-03-24 00:44:11 +03:00
Anthony Tseng 24fdf3cb4f Prevent devtools requests from getting intercepted by adblock 2021-03-23 13:19:05 -07:00
Sergey 2550ca03ca Add local node to list 2021-03-23 22:29:02 +03:00
mkarolin cbd049ce12 Updated strings for Chromium 90.0.4430.30. 2021-03-23 15:01:29 -04:00
mkarolin 0415672005 Add Brave shared resources data source to OTR profiles.
Profile Picker is shown under System profile (OTR), so when
adding brave Brave shared resources to profiles we need to
account for OTR profiles.
2021-03-23 14:55:43 -04:00
mkarolin 2d9e89be6c Styling fixes to profile picker.
- Removes background images in the main view
- Hides background image in the profile customization view
- Fixes Add button border radius.
2021-03-23 14:55:40 -04:00
mkarolin 2eff662c9a Native Notifications -> System Notifications.
Chromium change:

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

commit c30c9ddff5c96efd8e2455d7435e49806526c155
Author: Peter Beverloo <peter@chromium.org>
Date:   Wed Feb 24 19:56:03 2021 +0000

    Introduce "system notifications" terminology to mirror the native ones

    This is the first step in migrating from "native notifications" to
    "system notifications", following the spirit of inclusive code. A
    very brief migration plan has been included in the linked issue.

    Concretely, this CL:
      * Introduces the SystemNotifications base::Feature, matching the
        NativeNotifications one. Both will be supported for one milestone.
      * Introduces the AllowSystemNotifications enterprise policy, matching
        the AllowNativeNotifications one. Both will be supported for about
        a year, enabling enterprises to migrate.
      * Updates the chrome://flags entry to say "system notifications" and
        set the new base::Feature flag.
      * Renames the build-time flag, as deprecation concerns are pretty much
        absent there.

    Bug: 1136840
2021-03-23 14:55:37 -04:00
mkarolin 0cfe7fb0ce Updated strings for Chromium 90.0.4430.11. 2021-03-23 14:55:36 -04:00
Max Karolinskiy dd718a8475 [MacOS] AlertDispatcher API changes.
Chromium changes:

https://source.chromium.org/chromium/chromium/src/+/4737f9a9625b17bbe7b8d3387823c8eef84f6d2b

commit 4737f9a9625b17bbe7b8d3387823c8eef84f6d2b
Author: Richard Knoll <knollr@chromium.org>
Date:   Thu Jan 21 12:52:59 2021 +0000

    Remove NotificationCenter from AlertDispatcher

    This refactors the macOS AlertDispatcher interface to no longer require
    an instance of NSUserNotificationCenter to be passed in. We expect the
    caller to query their local NotificationCenter instead and merge the
    results. This allows us to use the same interface in a future CL for the
    UNNotification API.

    Bug: 1127306

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

commit b8acb518aba0a01f6a14dfc6d32715671f3d8cdd
Author: Richard Knoll <knollr@chromium.org>
Date:   Mon Jan 25 12:07:21 2021 +0000

    Reland "Pass incognito flag when closing macOS alerts"

    This is a reland of e48554ec4a6e3c50fb63717edb0a0d244a98616c

    The original change revealed that the currently used API has the same
    issue when identifying notifications from multiple profiles. It only
    used the notification id as identifier which might clash with another
    Chrome profile. This is now fixed by using the same unique identifier
    we use for the new API.

    PS1 contains the original change
    PS2 has the fix for the currently used API

    Original change's description:
    > Pass incognito flag when closing macOS alerts
    >
    > A macOS notification is identified with the tuple
    > {notificationId, profileId, incognito} and we have to pass these down to
    > the XPC service to close the correct notification. The same applies to
    > the notification id used in the UNNotification API where we need to
    > include the incognito flag in the id. Also updates some method names to
    > be more consistent.
    >
    > Bug: None
    > Change-Id: Ie45cb74eab182e0b495560110d8e6e32367c4bc7
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2642275
    > Reviewed-by: Rayan Kanso <rayankans@chromium.org>
    > Commit-Queue: Richard Knoll <knollr@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#846183}

    Bug: None

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

commit dd062faf6b1bf61d0410b1e0ab52afb42215b1b2
Author: Richard Knoll <knollr@chromium.org>
Date:   Tue Feb 2 13:03:55 2021 +0000

    Get all alerts shown via XPC on macOS

    This adds a new method to the XPC service that allows us to get all
    currently displayed alert notifications regardless of which profile they
    belong to. This will be required in the new bridge as the UNNotification
    API has no reliable way of detecting when a notification has been
    dismissed. Instead we will periodically synchronize with the system to
    detect closed notifications like we do on Windows 10.

    Bug: 1134570

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

commit efcf97ea2b47844b017fe95d4cb349eaf97d6d9c
Author: Richard Knoll <knollr@chromium.org>
Date:   Fri Feb 26 00:35:32 2021 +0000

    Close macOS notifications on profile shutdown

    We need to close notifications earlier in the shutdown process as it's
    too late to do so in the destructor. Closing them in the profile
    shutdown method also makes sense as we don't want notifications for
    incognito or guest profiles to stay around.

    Bug: 1170731
2021-03-23 14:55:35 -04:00
mkarolin 395d99e521 Fixes dependencies on //chrome/browser/profiles.
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/20a41c8b03a9ab035619e225520dfec484fb3e69

commit 20a41c8b03a9ab035619e225520dfec484fb3e69
Author: Glen Robertson <glenrob@chromium.org>
Date:   Tue Jan 19 08:20:35 2021 +0000

    Separate profile.{cc,h} (& observer) to its own GN target.

    This allows other code to depend on profile.h (very common as it is a
    keyed service key) without depending on all of //c/b:browser. This
    improves modularization of the codebase and will help to break
    dependency cycles in GN.

    Bug: 1149277
2021-03-23 14:55:34 -04:00
Mario Sanchez Prada b2e4de697f Migrate usage of base::Passed with base::BindOnce to std::move
A new static assertion has been added upstream and otherwise the
build will fail for Linux now, as well as for other platforms in
the next release.

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/ad0da8ebec488b6b3696b44d2da80744f8a90d17
https://source.chromium.org/chromium/chromium/src/+/63714a9ffe267a0212f4120a188f45408555a993

commit ad0da8ebec488b6b3696b44d2da80744f8a90d17
Author: Daniel Cheng <dcheng@chromium.org>
Date:   Mon Feb 22 21:07:22 2021 +0000

    Disallow base::Passed() from being used with base::BindOnce().

    The assert is currently only enabled on OS_LINUX. Platforms will be
    incrementally fixed until the assert is enabled everywhere.

    Bug: 1180750

commit 63714a9ffe267a0212f4120a188f45408555a993
Author: Daniel Cheng <dcheng@chromium.org>
Date: Fri Feb 26 09:51:28 2021

    [base] Disallow base::BindOnce() + base::Passed() use on iOS.

    std::move() and base::Passed() mean the same thing for base::BindOnce(),
    so use the standard library idiom instead.

    Bug: 1180750
2021-03-23 14:55:33 -04:00
mkarolin 02551fab9c TranslateBubbleModel API changed.
Chromium change:

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

commit db01f8a5783095aee1de20925fb8cc4d67f6c485
Author: Anthony Cui <cuianthony@google.com>
Date:   Thu Feb 18 21:45:18 2021 +0000

    Refactor unknown source language option and add support to Android

    This change
    - Refactors the implementation of the Unknown source language option,
    adding it at the TranslateUIDelegate level and treating it like other
    language options
    - Renames the "Unknown" option to "Detected Language" for a more
    functional description
    - Adds support for use of the new "Detected Language" source language
    option on Android
    - Adds both the string change and the Android support changes behind a
    new feature flag

    Bug: 1127094
2021-03-23 14:55:33 -04:00
mkarolin e341f85b82 NOTIFICATION_WEB_CONTENTS_DISCONNECTED was removed.
Chromium change:

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

commit a718ebd25a45e1265165c8a492c086b106ba7fbe
Author: John Delaney <johnidel@chromium.org>
Date:   Thu Feb 18 22:26:36 2021 +0000

    Remove NOTIFICATION_WEB_CONTENTS_DISCONNECTED

    Replaces existing instances with
    WebContentsObserver::WebContentsDestroyed() and/or
    WebContentsObserver::RenderProcessGone() and removes the notification
    invocation.

    Bug: 1174766
2021-03-23 14:55:32 -04:00
mkarolin 7bb904284b CreateDataPipe overload that takes pointer out-args was removed.
Chromium change:

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

commit 3bce5dd0e62e636614521b902e26fb47070e18c9
Author: Robert Sesek <rsesek@chromium.org>
Date:   Fri Feb 19 19:27:58 2021 +0000

    mojo: Remove deprecated CreateDataPipe overload that takes pointer out-args

    Bug: 944990
2021-03-23 14:55:32 -04:00
mkarolin 935b727fe9 UserManager has been removed.
Should use ProfilePicker now.

Chromium change:

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

commit f3c2c8d2fff648ef78f520f823aeaae48ac7ec4c
Author: Monica Basta <msalama@chromium.org>
Date:   Mon Feb 22 18:21:01 2021 +0000

    [UserManager]: Remove the user manager code.

    The User manager is being replaced with the new profile picker. This CL
    deletes the user manager code.

    Bug: 1014322
2021-03-23 14:55:31 -04:00
mkarolin 4bca02a889 ShowSingletonTabOverwritingNTP signature changed.
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/1b46c0a5122001153c56824f024a68ba56e5d1f9

commit 1b46c0a5122001153c56824f024a68ba56e5d1f9
Author: Keishi Hattori <keishi@chromium.org>
Date:   Mon Feb 22 22:02:34 2021 +0000

    Fix BrowserNavigatorTest.SwitchToTabIncognitoLeak for BackupRefPtr

    BrowserNavigatorTest.SwitchToTabIncognitoLeak fails when BackupRefPtr is used because it reads NavigateParams:: rowser after it has been moved.
    Unlike raw pointer, BackupRefPtr will be cleared when moved.
    This CL changes ShowSingletonTabOverwritingNTP() to take a pointer so Navigate() doesn't have to move NavigateP rams.
2021-03-23 14:55:31 -04:00
mkarolin f32d91fc59 Updated strings for Chromium 90.0.4427.5. 2021-03-23 14:55:29 -04:00
mkarolin bbdaf2cb44 macOS notification constants moved to service.
Chromium change:

https://chromium.googlesource.com/chromium/src.git/+/8af3e56abb81a251b481fdb2bb38ea980629ea07

commit 8af3e56abb81a251b481fdb2bb38ea980629ea07
Author: Richard Knoll <knollr@chromium.org>
Date:   Wed Feb 10 03:01:34 2021 +0000

    Move macOS notification constants and utils to service

    Mechanical change so we can use the same constants and helper methods in
    the notification service process.

    Bug: 1170731
2021-03-23 14:55:27 -04:00
mkarolin bbda8634b8 WebUI: remove @out_folder@ stripping.
It is no longer needed: when necessary resource_path can be used in the
grd.

Chromium change:

https://bugs.chromium.org/p/chromium/issues/detail?id=1171239

https://source.chromium.org/chromium/chromium/src/+/48b1ba996d2e019abad844fc47a5a1710b9da737

commit 48b1ba996d2e019abad844fc47a5a1710b9da737
Author: dpapad <dpapad@chromium.org>
Date:   Mon Feb 8 21:10:42 2021 +0000

    WebUI: Remove aliasing mechanism in SharedResourcesDataSource

    The last few entries in the alias map were either
     1) Unnecessary because the URLs were no longer used
        (views/resources/ case)
     2) Unnecessary because they could be replaced with |resource_path|
        (lottie case)
2021-03-23 14:55:27 -04:00
Mario Sanchez Prada 61a4a23f48 Migrate away from GritResourceMap and into webui::ResourcePath
Adapt Brave-specific code and overrides to use this equivalent struct.

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

commit a696151783d69bc6e8884246418d771d06cd9f53
Author: dpapad <dpapad@chromium.org>
Date:   Tue Feb 16 12:34:08 2021 +0000

    WebuI: Delete GritResourceMap struct in favor of webui::ResourcePath.

     - Move webui::ResourcePath definition to its own file in
       ui/base/webui/.
     - Modify Grit to use webui::ResourcePath, and delete the identical
       GritResourceMap struct.
     - Remove the AddResourcePathsBulk() override that used GritResourceMap.

    This is in preparation of moving AddResourcePathsBulk to WebUIDataSource
    itself.

    Bug: 1176299
2021-03-23 14:55:24 -04:00
Mario Sanchez Prada dc5da8e7bc Bring CloseGuestProfileWindows() back into brave_profile_menu_view.cc
This method has been removed from upstream as it was not used and there
does not seem to be an equivalent one available, so let's bring it back.

Fixup! Mario says: on a second thought I think this is probably not
needed so reverting this change (and simply dropping the
CloseGuestProfileWindows() call from
BraveProfileMenuView::OnExitProfileButtonClicked().

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

commit 53d0699ee2609b7195a93d92d2433500a0affd55
Author: Monica Basta <msalama@chromium.org>
Date:   Wed Feb 10 11:57:07 2021 +0000

    [Profiles]: Avoid opening the profile picker on close 'x' windows

    Currently on click on 'Close x windows' from the profile menu, the
    profile is closed and the user manager/profile picker is opened. This
    behavior is no longer desired. Clicking on the button should only close
    the profile. This CL also removes 'CloseGuestProfileWindows' function
    that is not used.

    Bug: 1176599
2021-03-23 14:55:23 -04:00