Commit Graph
1114 Commits
Author SHA1 Message Date
mkarolin 22c5dfb2da Update l10n for 1.33.x (Chromium 96) - Part II.
This lowers 1.34.x l10n update for 1.33.x release. This change removes
the original commit's changes to upstream localization files because
1.34.x has Cr96 and this commit is intended for Cr97.

Fixes brave/brave-browser#20029
2021-12-13 18:40:44 -05:00
Aleksey Khoroshilov ba80f26ebd Enable Partition/Split*ByNIK features by default. 2021-12-13 13:08:47 +07:00
Brian Johnson 3b6920e5de Merge pull request #10664 from brave/cr97 2021-12-07 19:50:20 -07:00
mkarolin f9c9491c13 Updated l10n for 1.33.x release. 2021-12-07 15:53:21 -05:00
Mario Sanchez Prada d46e47c3dd Disable Remote Optimization Guide features.
From cr97 on, having this feature enabled means that the browser will
attempt to reach the Optimization Guide Server every now and then at
the https://optimizationguide-pa.googleapis.com endpoint, as it was
detected by the npm run network-audit command:

  [:ERROR:brave_network_audit_browsertest.cc(151)] NETWORK AUDIT FAIL:https://optimizationguide-pa.googleapis.com/v1:GetModels?key=dummytoken
  [:ERROR:brave_network_audit_browsertest.cc(151)] NETWORK AUDIT FAIL:https://optimizationguide-pa.googleapis.com/v1:GetModels?key=dummytoken

    [...]

  [:ERROR:brave_network_audit_browsertest.cc(151)] NETWORK AUDIT FAIL:https://optimizationguide-pa.googleapis.com/v1:GetModels?key=dummytoken
  ../../brave/browser/net/brave_network_audit_browsertest.cc:249: Failure
  Value of: PerformNetworkAuditProcess(events)
    Actual: false
  Expected: true
  network-audit FAILED. Import /home/mario/work/brave-rebases/brave-browser/src/network_log.json in chrome://net-internals for more details.
  Stack trace:
  #0 0x55f213f6cc10 brave::(anonymous namespace)::BraveNetworkAuditTest::TearDownInProcessBrowserTestFixture()
  #1 0x55f215bda3be content::BrowserTestBase::SetUp()
  #2 0x55f215bd741e InProcessBrowserTest::SetUp()

This patch disables the kkOptimizationHints feature. TBD if this is
needed.

This patch disables the kRemoteOptimizationGuideFetching features that
are otherwise enabled by default, avoiding this URL requests.

PS: I couldn't pinpoint yet where exactly in Chromium 97 this started
happening, but I can consistently reproduce it on my local cr97 branch
setting kMaxTimeoutPerLoadedURL in brave_network_audit_browsertest.cc
to at least 20 seconds, while this doesn't happen on cr96 even when
using the default timeout of 5 minutes, so it's cr97-related.
2021-12-07 14:46:10 -05:00
mkarolin a4dab30c39 Updated strings for Chromium 97.0.4692.8. 2021-12-07 14:45:46 -05:00
Mario Sanchez Prada 8c61583cac Adapt to the removal of features::kReportAllJavaScriptFrameworks flag
This feature has launched by default upstream but we still need to
disable it as per request from the Security team, so we basically
bring back the previous behaviour via a chromium_src override, plus
a small patch to adapt javascript_frameworks_ukm_observer.cc.

Chromium change:

https://github.com/chromium/chromium/commit/34af795689999a2670d0238dedb5892b35e1642b

commit 34af795689999a2670d0238dedb5892b35e1642b
Author: Nicolás Peña Moreno <npm@chromium.org>
Date:   Wed Oct 27 21:22:47 2021 +0000

    Remove flag for framework detection

    The feature is enabled by default, and the flag is no longer needed.

    Bug: 1006274
2021-12-07 14:45:39 -05:00
Mario Sanchez Prada 2e11133264 Updated strings for Chromium 97.0.4688.2. 2021-12-07 14:45:34 -05:00
Mario Sanchez Prada 63cb060f85 Disable translate::kTFLiteLanguageDetectionEnabled feature
This feature is now being enabled by default for Linux, Windows and
Mac, which is interfering with Brave's own internal tranlate engine,
so we now need to explicitly disable it.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/15e59cc7caed2b3e0401bcc6b8b4fa3fa94a07f9

commit 15e59cc7caed2b3e0401bcc6b8b4fa3fa94a07f9
Author: mcrouse <mcrouse@google.com>
Date:   Wed Oct 20 17:38:30 2021 +0000

    [LangID] Enable TFLite Language Detection by default on Desktop.

    This enables language detection by default on desktop.

    Note: This also changes how tests for translate browsertests works
    in cases that relying on content/language detection is not necessary.
    This makes the test more reliable and less bulky. We likely want
    to improve this over time but this gets us to a point we can
    enable the model on ToT.

    This is fully behind Finch control and we will keep it
    that way for safety for a few milestones.

    Bug: 1159144
2021-12-07 14:45:23 -05:00
Mario Sanchez Prada ef126e6a54 Updated strings for Chromium 97.0.4681.0. 2021-12-07 14:45:17 -05:00
Mario Sanchez Prada 1169d0acb7 kLegacyTLSEnforced is enabled by default.
Feature switch has been removed.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/1746a920a7ddafcff0f8ea5ddb6d75e54cb7a21a

commit 1746a920a7ddafcff0f8ea5ddb6d75e54cb7a21a
Author: David Benjamin <davidben@chromium.org>
Date:   Thu Oct 14 17:16:57 2021 +0000

    Unwind kLegacyTLSEnforced feature flag

    The feature shipped, so we no longer need the flag. This doesn't change
    behavior, just unwinds the old feature flag to toggle the existing
    interstitial.

    Bug: 1044750
2021-12-07 14:45:06 -05:00
Mario Sanchez Prada ab662f1dd6 Updated strings for Chromium 97.0.4676.0. 2021-12-07 14:43:09 -05:00
mkarolin 7f1d685ab7 global_media_controls_strings.grdp was renamed.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/1307bd02195bd73a52ab0651ef3d629d619deb33

commit 1307bd02195bd73a52ab0651ef3d629d619deb33
Author: Tommy Steimel <steimel@chromium.org>
Date:   Mon Oct 18 18:52:40 2021 +0000

    GMC: Rename chrome/app/global_media_controls_strings to avoid collision

    With the addition of the new global media controls component, we now
    have two different grdp files named global_media_controls_strings:

    components/global_media_controls_strings.grdp and
    chrome/app/global_media_controls_strings.grdp

    This CL renames the chrome/app one to gmc_strings.grdp

    Bug: 1260955
2021-12-07 14:43:06 -05:00
Emerick Rogul d879a2d835 Fix wording in brave://settings/rewards for video contributions 2021-11-30 12:51:42 -05:00
Sergey 23aa169039 Check decimal number against hex for chain ID (#11245) 2021-11-24 11:37:43 +03:00
Emerick Rogul 2e39984516 Update text for enabling Rewards from brave://settings/rewards 2021-11-18 18:21:54 -05:00
Simon Hong a866388750 Merge pull request #10879 from brave/ms_edge_protocol_setting
Added ms-edge protocol handler option
2021-11-17 07:49:14 +09:00
mkarolin da9e105b5a Additional l10n for 1.32.x release. 2021-11-15 20:21:26 -05:00
Simon Hong aab8dd4b66 Added ms-edge protocol handler option to settings w/o system dialog
fix https://github.com/brave/brave-browser/issues/17558

Applied below FF's implementation to set default handler w/o using
windows system ui.
https://github.com/mozilla/gecko-dev/blob/master/toolkit/mozapps/defaultagent/SetDefaultBrowser.cpp
2021-11-15 08:23:09 +09:00
mkarolin 55e74e1ee9 Update l10n for 1.32.x (Chromium 96). 2021-11-12 16:10:06 -05:00
Aleksey Khoroshilov ad2ce27aca Add support for default feature state overrides using static map (#10878)
* Add support for default feature state override.

* Convert runtime feature overrides to static overrides.

* Support overrides set via a single macro instantiation.

* Remove unused include.
2021-11-11 17:57:23 +07:00
AlexeyBarabash e3a3d1a276 Merge pull request #10898 from brave/sync_warn_desktop
Show warning on Desktop before enter existing sync chain
2021-11-05 20:22:28 +02:00
Brian R. Bondy 408ef816cb Merge pull request #10887 from brave/default-currency
Add settings and API for default wallet currency and default wallet cryptocurrency
2021-11-05 08:41:27 -04:00
AlexeyBarabash 9c872d57e7 Show warning on Desktop before enter existing sync chain 2021-11-05 11:53:07 +02:00
Brian R. Bondy fee3956d8d Add default currency/cryptocurrency settings and API 2021-11-04 15:57:03 -04:00
Jocelyn Liu dbc75d7768 Enter url should be Enter URL in brave://settings/wallet/networks 2021-11-03 19:48:58 -07:00
Brian R. Bondy cf2b2872b8 Merge pull request #10852 from brave/remove-wallet-build-flag
Remove wallet build flag
2021-11-03 20:38:44 -04:00
Brian R. Bondy 6a232513e7 Remove wallet buildtime flag brave_wallet_enabled 2021-11-03 10:34:23 -04:00
Mario Sanchez Prada bae97f5a38 Updated strings for Chromium 96.0.4664.27. 2021-11-02 12:43:04 -04:00
Simon Hong 9464a82095 Fix crash on DCHECK-enabled builds due to missing accesibility name IV
The buttons used for the Brave VPN in the toolbar and app menu were
lacking an accessible name, which was triggering a crash on startup
on DCHECK-enabled builds.

Chromium change:

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

commit a62d2cead48795f0cfc53d35dcdca66f4e236bb3
Author: Peter Boström <pbos@chromium.org>
Date:   Thu Oct 7 21:14:44 2021 +0000

    Reland "Enable Views OnPaint() A11y DCHECKs"

    This reverts commit 32985fb4404d1c7aa41053d8f4d21ed729afbb98.

    Reason for revert: Relanding with additional skip-check annotations.

    Original change's description:
    > Revert "Enable Views OnPaint() A11y DCHECKs"
    >
    > This reverts commit c95dcbbb8ef6577342acfd2d9a3a0af9ee54502b.
    >
    > Reason for revert: Suspected culprit for failures on linux-chromeos-dbg. https://ci.chromium.org/ui/p/chromium/builders/ci/linux-chromeos-dbg/25787/overview
    >
    >
    > Original change's description:
    > > Enable Views OnPaint() A11y DCHECKs
    > >
    > > This annotates MessageBoxView which was the hard-to-find culprit of
    > > ChromeDriverTest.testSendTextToAlert. Presumably the test is set up to
    > > generate display a zero-length message?
    > >
    > > This change is likely to get reverted as more issues are found in the
    > > field. If you see this commit because your specific UI/dialog started
    > > crashing, please see views::kSkipAccessibilityPaintChecks to temporarily
    > > disable the DCHECK for your UI rather than reverting the mechanism for
    > > detecting these errors. Do follow that up with removal of that property
    > > and make sure that focusable UI always has accessible names that can be
    > > read by screenreaders.
    > >
    > > Bug: 1218186
    > > Change-Id: Id5e19fa7ccca844c599740b6849a3721604a5ee8
    > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3209106
    > > Reviewed-by: Scott Violet <sky@chromium.org>
    > > Commit-Queue: Scott Violet <sky@chromium.org>
    > > Commit-Queue: Peter Boström <pbos@chromium.org>
    > > Auto-Submit: Peter Boström <pbos@chromium.org>
    > > Cr-Commit-Position: refs/heads/main@{#928920}
    >
    > Bug: 1218186
    > Change-Id: I9abaef4c2abfa1d853be8933d700e11a727dbc97
    > No-Presubmit: true
    > No-Tree-Checks: true
    > No-Try: true
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3210369
    > Reviewed-by: Meredith Lane <meredithl@chromium.org>
    > Reviewed-by: Nancy Wang <nancylingwang@chromium.org>
    > Owners-Override: Meredith Lane <meredithl@chromium.org>
    > Auto-Submit: Meredith Lane <meredithl@chromium.org>
    > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
    > Commit-Queue: Nancy Wang <nancylingwang@chromium.org>
    > Cr-Commit-Position: refs/heads/main@{#929035}

    Bug: 1218186
2021-11-02 12:41:31 -04:00
mkarolin fe8b2f327f Disable kPrerender2 feature.
Per security team.

Also, disables origin trials and a related
kSpeculationRulesPrefetchProxy feature.

Chromium change:

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

commit d22042e30d6dc42081b01d0c0cc31f9f49dd2d64
Author: Simon Pelchat <spelchat@chromium.org>
Date:   Thu Sep 30 19:57:51 2021 +0000

    Enable SpeculationRulesPrefetchProxy by default on Android only.

    Note that this feature is still gated behind origin trial and has not actually been launched.

    Bug: 1022055
2021-11-02 12:41:31 -04:00
mkarolin 81f8bc85ba Disable kReportAllJavaScriptFrameworks feature.
Per security team.

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/519bb90d99ba0eecbe914d7fcaf1da760310a9ec

commit 519bb90d99ba0eecbe914d7fcaf1da760310a9ec
Author: Nicolás Peña Moreno <npm@chromium.org>
Date:   Fri Oct 1 19:56:51 2021 +0000

    Enable all JS framework reporting by default

    Bug: 1006274
2021-11-02 12:41:31 -04:00
mkarolin 83970c197b Disable Fledge and Parakeet features and orign trials.
Per security team.

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/4359c5ebd238c93c22e69d369cbe813ae3081b6c

commit 4359c5ebd238c93c22e69d369cbe813ae3081b6c
Author: Brandon Maslen <brandm@microsoft.com>
Date:   Mon Sep 27 20:32:05 2021 +0000

    Rename InterestGroup API flag for common use and add flag for PARAKEET impl

    Update the FledgeInterestGroupAPI flag/policy to be a more generic
    AdInterestGroupAPI for shared usage between multiple ad serving features.

    Updates the FledgeInterestGroups flag for backend storage to be
    a more generic 'InterestGroupStorage'.

    Also splits the specific ad serving API methods under two new runtime
    flags 'Fledge', blink::features::kFledge, and 'Parakeet',
    blink::features::kParakeet. For PARAKEET the method stubs have been
    added but will be fully fleshed out with proper types in a subsequent
    change.

    Test collateral has been updated to ensure the new surface area is
    available and callable.

    Bug: 1249186
2021-11-02 12:41:31 -04:00
mkarolin 104c648a06 Disable kWebSQLInThirdPartyContextEnabled feature.
Per security team.

Enterprise policy override switch is NOT disabled.

Chromium change:

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

commit fec3a66ed2a6db4729060315db9120f91b44bf4b
Author: Ari Chivukula <arichiv@chromium.org>
Date:   Mon Sep 27 22:04:11 2021 +0000

    [WebSQL] (1) Add feature to disable third party context WebSQL

    In preparation for M96 we want to add a flag to disable third party
    WebSQL (which defaults to off) and an enterprise policy that can
    override that. In M97 this flag will default to enabled.
    (1) Add feature to disable third party context WebSQL
    (2) Add enterprise policy to restore third party context WebSQL

    Bug: 1212491
2021-11-02 12:41:31 -04:00
Mario Sanchez Prada 8d83b0f7bd DnsOverHttps is now enabled by default on all platforms
Similarly to what happened in the past for Windows, Mac and Android
when upstream enabled DoH by default on all those platforms [1], we
now need to adapt to that locally as we did in the past [2].

This time the result is nicer, though, because we don't need to make
any per-platform exception and can simply drop one branch of the #if.

[1] https://crrev.com/c//2429243
[2] https://github.com/brave/brave-core/commit/816a34c394

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/5f6a91993f14cab4f9c53384dd95e78a8f6ffe75

commit 5f6a91993f14cab4f9c53384dd95e78a8f6ffe75
Author: Eric Orth <ericorth@chromium.org>
Date:   Fri Oct 1 14:57:15 2021 +0000

    Enable DoH for linux by default in code

    Same as when this was previously done for other platforms (in
    crrev.com/c/2429243), leave the fieldtrial testing config stuff as-is
    because it is testing the still-manipulated-via-feature-param
    "DisabledProviders" list.

    Bug: 1127671
2021-11-02 12:41:31 -04:00
mkarolin 374bfc64e2 Updated strings for Chromium 96.0.4664.18. 2021-11-02 12:41:31 -04:00
Mario Sanchez Prada 60510b48db Adapt to renaming of kFledgeInterestGroupAPI and kFledgeInterestGroups
These features are kAdInterestGroupAPI and kInterestGroupStorage now.

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/4359c5ebd238c93c22e69d369cbe813ae3081b6c

commit 4359c5ebd238c93c22e69d369cbe813ae3081b6c
Author: Brandon Maslen <brandm@microsoft.com>
Date:   Mon Sep 27 20:32:05 2021 +0000

    Rename InterestGroup API flag for common use and add flag for PARAKEET impl

    Update the FledgeInterestGroupAPI flag/policy to be a more generic
    AdInterestGroupAPI for shared usage between multiple ad serving features.

    Updates the FledgeInterestGroups flag for backend storage to be
    a more generic 'InterestGroupStorage'.

    Also splits the specific ad serving API methods under two new runtime
    flags 'Fledge', blink::features::kFledge, and 'Parakeet',
    blink::features::kParakeet. For PARAKEET the method stubs have been
    added but will be fully fleshed out with proper types in a subsequent
    change.

    Test collateral has been updated to ensure the new surface area is
    available and callable.

    Bug: 1249186
2021-11-02 12:38:04 -04:00
Mario Sanchez Prada 0eea266f7b Updated strings for Chromium 96.0.4664.9. 2021-11-02 12:38:04 -04:00
Mario Sanchez Prada ca065a4c37 Updated strings for Chromium 96.0.4655.5. 2021-11-02 12:38:04 -04:00
mkarolin ead148b680 Fixes SettingsUI to work with kenableLandingPageRedesign flag.
The flag was enabled in cr95, but we turned it off to not delay cr95.

Chromium change:

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

commit 3c58a8791e7fd574e811e9d2ff40e885552bdc7e
Author: dpapad <dpapad@chromium.org>
Date:   Thu Sep 9 08:20:42 2021 +0000

    Settings: Turn on SettingsLandingPageRedesign by default.

    Bug: 1215626
2021-11-02 12:38:03 -04:00
Mario Sanchez Prada 01290be2b3 Remove references to SignedExchangePrefetchCacheForNavigations flag
We only referenced it to disable the feature, but we also disable the
SignedExchangeSubresourcePrefetch one, so we can simply drop that now.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/81c6aac468434ae4b96442ce11745e1ef828da04

commit 81c6aac468434ae4b96442ce11745e1ef828da04
Author: Tsuyoshi Horo <horo@chromium.org>
Date:   Tue Sep 21 02:10:28 2021 +0000

    Remove SignedExchangePrefetchCacheForNavigations flag

    This feature was merged into SignedExchangeSubresourcePrefetch.

    Bug: 968427
2021-11-02 12:38:03 -04:00
Mario Sanchez Prada 3ea530c173 Updated strings for Chromium 96.0.4651.0. 2021-11-02 12:38:03 -04:00
Mario Sanchez Prada 6177002ecc Updated strings for Chromium 96.0.4645.0. 2021-11-02 12:38:03 -04:00
Mario Sanchez Prada 00eafffdc0 Remove references to features::kPrivacySandboxSettings2, not needed
This feature only enables the section related to FLoC in the settings
page brave://settings/privacySandbox, but such section is inaccessible
due to previous changes we made in cr95 to prevent Brave from enabling
prefs::{kPrivacySandboxApisEnabled,kPrivacySandboxFlocEnabled}, so
there's no functional change for us by simply letting it go.

In other words, the FLoC-related section will be visible if you
manually load brave://settings/privacySandbox[*], but you won't ever
be able to use it since you'd first need to enable the privacy sandbox
trials section, which can't be enabled now.

[*] There's no link to brave://settings/privacySandbox from Brave
settings UI, the user would need to manually load that URL.

Chromium change:

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

commit f7a688a187c6a18aa7b0e7d18d1a262c09089234
Author: Theodore Olsauskas-Warren <sauski@google.com>
Date:   Mon Sep 13 09:08:58 2021 +0000

    Privacy Sandbox 2: Remove flag & solidify code

    CL removes the Privacy Sandbox 2 flag, which has been launched, and
    solidifes the code paths controlled by the flag into their launched
    state.

    Bug: 1205781
2021-11-02 12:38:03 -04:00
Mario Sanchez Prada ef90376c99 Updated strings for Chromium 96.0.4642.0. 2021-11-02 12:38:02 -04:00
Pete Miller bc89417c25 Merge pull request #10710 from brave/location_bar_tor 2021-11-01 11:27:51 -07:00
Ralph Giles 6f2f55b266 Use /etc/brave/policies even if it doesn't exist.
PathService::Override() requires that the new target path exists,
and tries to create it if it doesn't. Since the user doesn't have
permission to create `/etc/brave` the override fails if an
administrator hadn't already installed something there, and the
original `/etc/chromium` path for policy files remains active.

Current uses of this path are few and seem to be robust against
the directory not existing, so this seems a safer fix than patching
the upstream default.

Closes brave/brave-browser#19052
2021-10-29 11:27:17 -07:00
Taher 5e94691ca3 Updated tor icon and copy in location bar 2021-10-28 13:51:18 -07:00
Emerick Rogul 4532a325c3 Add Rewards settings to brave://settings 2021-10-28 08:01:31 -04:00
mkarolin efa912cee0 Fixes incorrect Polish l10n of the term Tab.
Fixes brave/brave-browser#17991
2021-10-26 15:50:23 -04:00