Commit Graph
388 Commits
Author SHA1 Message Date
Sergey P ace6f84085 Stop node if switched from local node to another option 2021-03-26 18:44:35 +03:00
Serg efc1f2c757 injects window.ethereum object into all frames 2021-03-24 15:27:42 -04: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
Sergey 2550ca03ca Add local node to list 2021-03-23 22:29:02 +03: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
Jocelyn Liu 00ea13fb86 Add l10n support of resolve method options in decentralized DNS settings 2021-03-22 19:31:01 -07:00
Brian R. Bondy 10ff512791 Change hamburger menu from Crypto Wallets -> Wallet 2021-03-12 22:36:13 -05:00
sergey 4050f9c6f0 Fix gateway option in settings 2021-03-11 18:03:33 +03:00
Sergey 00d7a0e1c0 Add ipfs storage max option to settings page 2021-03-10 09:29:46 +03: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 7a97052734 Add ENS support 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
Jocelyn Liu 3197149cff Address review comments
- Do not abbreviate unstoppable domains in brave_default_extensions_page
- Add comment to stub_resolver_config_reader override
- Separate Brave's own DnsTransaction unit tests
- Remove patch of stub_resolver_config_reader.cc and settings_secure_dns_handler.cc
- Update test
- Move browser/unstoppable_domains into its own target
2021-03-02 21:11:34 -08:00
Jocelyn Liu c3196d1e41 Add a feature flag for unstoppable domains support 2021-03-02 15:04:09 -08:00
Jocelyn Liu 4f9dcad863 Add unstoppable domains support via DNS over HTTPS 2021-03-02 15:04:09 -08:00
Brian Clifton bd05b0a842 Update title for pref "Enable Widevine" => "Widevine"
Also removes translation (not needed)
2021-02-17 10:36:28 -07:00
Brian Clifton 6167de9205 Remove "Ask when a site wants to install Widevine on your computer" preference from UI
Preference itself is still used- but not displayed to user. If they
click "Don't show again" and then change their mind, they can enable
regular Widevine preference

Fixes https://github.com/brave/brave-browser/issues/14130
2021-02-17 10:32:34 -07:00
Brian R. Bondy 8c22aeac31 Cleanup proxy browser js settings 2021-02-09 11:02:40 -05:00
Brian R. Bondy c41d804a7a Follow the same ordering as the menu in the settings 2021-02-09 11:02:40 -05:00
Brian R. Bondy fc660822cb Re-add dropped settings menu items 2021-02-09 11:02:40 -05:00
Brian R. Bondy 010ffdecc9 Add Wallet section for settings 2021-02-09 11:02:40 -05:00
Sergey 868d0fc7ff Refactor settings for IPFS into its own section 2021-02-06 18:24:59 +03:00
mkarolin 2087ea6028 Formatting fixes. 2021-02-04 23:54:29 -05:00
mkarolin a81f4eb6aa Updated optimize_webui.gni patch. 2021-02-04 23:54:26 -05:00
Anthony Tseng 110661c7a5 Fix sync encryption/decryption handling 2021-02-04 23:52:46 -05:00
AlexeyBarabash e2fe5dfba2 Modified way if set encryption for Sync
Related Chromium change https://source.chromium.org/chromium/chromium/src/+/b455227428979e24f66de2f45c9180f33f4a8adf

fixes brave-browser#13657
2021-02-04 23:52:39 -05:00
mkarolin 13421ed59d optimize_webui.gni/py moved to tools subdir.
Chromium change:

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

commit c6590bf2684410927423ef850bd0c74973ecc315
Author: dpapad <dpapad@chromium.org>
Date:   Wed Jan 6 09:18:00 2021 +0000

    WebUI: Move optimize_webui.py related files to c/b/r/tools.

    Also fix new PRESUBMIT warning about
    TESTONLY_AND_VISIBILITY in optimize_webui.gni.

    Bug: None
2021-02-04 23:52:24 -05:00
mkarolin f25673ac26 preprocess_grit -> preprocess_if_expr
Chromium changes:

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

commit 3e8d38ecce92420ad0cdab7c67f2b742b510f0e1
Author: rbpotter <rbpotter@chromium.org>
Date:   Wed Nov 25 20:37:33 2020 +0000

    WebUI: Add a new preprocess_if_expr rule to preprocess only <if expr>s

    preprocess_grit takes the same path as preprocess="true" for a grd file
    entry. This includes inlining <include>s, which is no longer supported
    (see styleguide at [1]). Add a new preprocess_if_expr rule, which is
    copied from preprocess_grit, with the following modifications:
    (1) Runs only the preprocessing of <if expr>s ("Conditional Elements")
        and not the rest of the preprocess="true" HTML inlining path
    (2) Depends on fewer pieces of grit, by no longer using the full DoInline
        method and inlining/simplifying some logic for parsing defines.

    This new rule shares the same inputs as preprocess_grit. In followup
    CLs, users of preprocess_grit can be migrated by simply importing the
    new rule and replacing all usages of preprocess_grit with
    preprocess_if_expr. Once all usages have been migrated, preprocess_grit
    will be deleted.

    [1] https://chromium.googlesource.com/chromium/src/+/HEAD/styleguide/web/web.md#Preprocessing

https://chromium.googlesource.com/chromium/src/+/26188a2d6537958e9663767c086e86d01e0c50f3

commit 26188a2d6537958e9663767c086e86d01e0c50f3
Author: rbpotter <rbpotter@chromium.org>
Date:   Mon Dec 7 11:20:43 2020 +0000

    WebUI: Delete preprocess_grit

    Removing in favor of the more limited preprocess_if_expr.
2021-02-04 23:52:07 -05:00
Simon Hong 5f3914d5bc Use 2021 year in license sentence for new files 2021-02-04 11:02:20 +09:00
Simon Hong f66145d2c8 Fix lint/format error by npm run format 2021-02-04 11:02:20 +09:00
Simon Hong cee6d14b77 Move sidebar settings option below home button option 2021-02-04 11:02:20 +09:00
Simon Hong aa669fe238 Show proper enabled sub-label of sidebar settings option 2021-02-04 11:02:19 +09:00
Simon Hong b1b6f98393 Adjust add item bubble color and layout 2021-02-04 11:02:19 +09:00
Simon Hong 336bde9378 Use multi select settings option for showing sidebar
Also app menu has sidebar submenu.
2021-02-04 11:02:19 +09:00
Simon Hong 71736d0c77 Initial Sidebar UI implementation
Resolves: https://github.com/brave/brave-browser/issues/12906

Sidebar component manages persisted items list in pref store.
SidebarService does it and store items list is shared per profile.

In chrome layer, sidebar is implemented with MVC model.
They are SidebarController, SidebarModel and Sidebar and many views implementations.
Each browser window has its own MVC. So, BraveBrowser(subclass of Browser) owns them.
SidebarModel manages each item's runtime state and it observes SidebarService to get
notification about item add or delete.

This change only implements initial native sidebar UI.

Sidebar feature is disabled by default and can enable via brave://flags only on nightly/local build.
During the runtime, sidebar can be toggled via settings.

Sidebar webviews don't work properly yet because their WebContentsDelegate is not set properly.
Implementing WebContentsDelegate will be done as a separate task.
2021-02-04 11:02:19 +09:00
Anthony Tseng ad41464b85 tor-internals init 2021-01-25 12:19:22 -08:00
Serg cd595d1227 creates webpack bundle from js 2021-01-20 19:26:32 -05:00
Serg b507e89247 adds fetching script from resources 2021-01-20 19:26:32 -05:00
Simon Hong d3edbf7ee4 Address review comments
* Change widevine settings description
* Reverted accidently deleted code
2021-01-20 09:22:24 +09:00
Simon Hong f47d8d6f12 Add Widevine toggle option to settings
This toggle option register/unregister widevine cdm components.

Resolves https://github.com/brave/brave-browser/issues/2791
2021-01-19 22:42:10 +09:00
Pete Miller 68d62f1f33 Fix build dependency issue with settings and extension pages resources 2021-01-13 23:07:25 -08:00
mkarolin d35a59581a [Web UI]: Printing section was removed from Settings.
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/8e2026785e06eddedeafafa0ce3d6f96473b62a0

commit 8e2026785e06eddedeafafa0ce3d6f96473b62a0
Author: rbpotter <rbpotter@chromium.org>
Date:   Fri Nov 6 20:04:03 2020 +0000

    Settings: Remove printing page

    chrome://settings/cloudPrinters is deprecated as of M88.

    In crrev.com/c/2520081 Print Preview's "Manage" button is being
    redirected to open the OS printer settings dialog, so keeping the
    link to that dialog in browser settings also is no longer necessary.

    Bug: 1144931
2021-01-05 21:27:43 -05:00
Mario Sanchez Prada 69361548e8 Adapt includes for base/test/bind_test_util.h to base/test/bind.h
Chromium change:

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

commit ef4e919472b5d3392ee0a203eb127cbbdfca18d2
Author: Guido Urdaneta <guidou@chromium.org>
Date:   Mon Nov 9 15:06:24 2020 +0000

    Reland "Move base/test/bind_test_util.h to base/test/bind.h"

    This reverts commit 8bd07a6cf9f06aabfa2af81c6e3679c0d51dad73.

    Reason for revert: This revert was incorrect and breaks the build.

    Original change's description:
    > Revert "Move base/test/bind_test_util.h to base/test/bind.h"
    >
    > This reverts commit a4493a6f807921ee85f7783e671c1d7d488c5bff.
    >
    > Reason for revert: This CL breaks internal builds (e.g. /chrome/browser/media/kaleidoscope/internal/kaleidoscope_browsertest.cc).
    >
    > Original change's description:
    > > Move base/test/bind_test_util.h to base/test/bind.h
    > >
    > > Stop relying on us to remember arcane file names when writing tests,
    > > and repeating the directory hierarchy into the file name.
    > >
    > > R=​dcheng@chromium.org
    > > TBR=
    > > NOPRESUBMIT=true
    > >
    > > Change-Id: I49c951162939c7dcef44883bee740f94b2f49e09
    > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2523099
    > > Commit-Queue: danakj <danakj@chromium.org>
    > > Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    > > Cr-Commit-Position: refs/heads/master@{#825145}
    >
    > TBR=danakj@chromium.org,dcheng@chromium.org
    >
    > # Not skipping CQ checks because original CL landed > 1 day ago.
    >
    > Change-Id: If165b8443662baa564895e994ea0d772348e6da6
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2526102
    > Reviewed-by: Denis Kuznetsov [CET] <antrim@chromium.org>
    > Commit-Queue: Denis Kuznetsov [CET] <antrim@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#825328}
2021-01-05 21:27:43 -05:00
Anthony Tseng 4bac0616e3 Enabling extensions in Tor through "Allow in private" and warn users
that network requests will not go through Tor if the extension is running in
spanning mode
2020-12-14 14:59:36 -08:00
Anthony Tseng 4fcd0d4a75 lint fix 2020-12-14 14:59:36 -08:00
Anthony Tseng a4bf137436 Add extensions support for Tor OTR profile
1. Add a switch depends on "Allow in private" to enable a extension in Tor
2. When a extension is enabled in Tor, force it to be `split` mode
2020-12-14 14:59:35 -08:00
Brian R. Bondy 1c7b4370c0 Add setting for IPFS gateway resources 2020-12-12 22:33:20 -05:00
Jocelyn Liu e8af05569f Use PrefsBehavior to set IPFS public gateway pref in JS 2020-12-10 13:31:20 -08:00
Jocelyn Liu 6614869913 Address UI review comments 2020-12-09 15:32:47 -08:00
Jocelyn Liu 72baf83641 npm run format 2020-12-09 12:32:30 -08:00