Commit Graph
17216 Commits
Author SHA1 Message Date
Mario Sanchez Prada 033fdeec00 Drop support for nonGeneratedFiles from brave_rollup_overrides.js
This made sense when Chromium's //c/b/resources/tools/rollup_plugin.js
considered that source JS files could come from both the sources and
the generated directories, but this is no longer the case as all those
JS files are under <root_gen_dir>/ui/webui/resources/webui_preprocessed
now, so we need to update Brave's code to adapt to this new scenario.

Chromium change:

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

commit efc282784459e1ec69a524d901d8694cce5230c5
Author: rbpotter <rbpotter@chromium.org>
Date:   Tue Sep 1 04:37:15 2020 +0000

    Web UI: Add preprocessed resources and use in rollup

    Preprocess all shared JS module resources into:
    <root_gen_dir>/ui/webui/resources/webui_preprocessed

    and read all these resources from this directory when bundling with
    rollup.

    Bug: 1071641
2020-10-28 13:59:42 -04:00
Mario Sanchez Prada 2aa3834414 Updated strings to Chromium 87.0.4259.3. 2020-10-28 13:59:42 -04:00
Mario Sanchez Prada cce5fccd4c Updated patches from Chromium 87.0.4250.0 to Chromium 87.0.4259.3 2020-10-28 13:59:42 -04:00
Mario Sanchez Prada e21820079e Disable Trusted Types mitigation on Brave's Welcome & Rewards pages
JS code in Brave's Welcome and Rewards WebUI pages is not ready yet
to migrated to a world where Trusted Types are enforced, so we need
to disable the Content Security Policy for Trusted types in those
pages for now and return to a pre-Chromium 87 point in order to keep
them working.

As mentioned above, this affects mainly Brave Rewards, but also
Brave's welcome page. Search for 'dangerouslySetInnerHTML' in *.tsx
files to find where exactly this is a problem.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/5cb72d5f4fe919cfff22f3f51a6fc5e690588836

commit 5cb72d5f4fe919cfff22f3f51a6fc5e690588836
Author: Jun Kokatsu <Jun.Kokatsu@microsoft.com>
Date:   Fri Aug 21 21:27:19 2020 +0000

    Enable Trusted Types mitigation on WebUI by default

    This change enables Trusted Types mitigation on WebUI by default.
    It enforces use of safe API by default, and any use of unsafe API
    (e.g. innerHTML, document.write, etc) has to overwrite Trusted Types
    directives in the CSP header. Therefore this change makes security
    review or audit of JavaScript code on WebUI a lot easier. Because
    JavaScript could introduce XSS only by using
    `trustedTypes.createPolicy` to generate untrusted html or script as
    Trusted Types, or removing Trusted Types mitigation. And all of
    those has to be carefully reviewed going forward.

    Bug: 41905
2020-10-28 13:59:42 -04:00
mkarolin edb584e6d0 Updated strings to Chromium 87.0.4250.0. 2020-10-28 13:59:42 -04:00
samartnik 0c8a08b36b [Android] Changed material design package name
Chromium change:
https://chromium.googlesource.com/chromium/src/+/3cd99aa27b47b24b44133959607b35380ed4633f

[Android] Fix material design package in resource exclusion regexes

Downstream material design targets are named slightly differently than
upstream material design. Remove the final "_material" from the regex in
order to also match downstream package names.

TBR=just bringing weblayer exclusions in line with chrome's

Bug: 1110346
2020-10-28 13:59:42 -04:00
mkarolin dfa6c7402f ChromeTextContext::CONTEXT_DIALOG_BODY_TEXT_LARGE renamed.
Chromium change:

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

commit fe08628fc210fd506cbb5d2fbc79193cbac2a342
Author: Peter Boström <pbos@chromium.org>
Date:   Fri Aug 28 22:41:00 2020 +0000

    Merge body-text text contexts

    Renames CONTEXT_MESSAGE_BOX_BODY_TEXT => CONTEXT_DIALOG_BODY_TEXT.
    Replaces ChromeTextContext::CONTEXT_DIALOG_BODY_TEXT_LARGE uses
    CONTEXT_DIALOG_BODY_TEXT. For consistency with the rename above,
    CONTEXT_BODY_TEXT_SMALL is renamed CONTEXT_DIALOG_BODY_TEXT_SMALL.

    What this functionally means is that CONTEXT_MESSAGE_BODY_TEXT takes on
    the old style of CONTEXT_DIALOG_BODY_TEXT_LARGE, so one style of dialog
    text is dropped and the new style can be used from views code. As a
    result dialog body text looks more uniform.

    Bug: 1122602
2020-10-28 13:59:42 -04:00
mkarolin dedfbb4784 StatisticsRecorder::SetCallback signature changed.
Chromium change:

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

commit b63857b27c74a69b28575c514bac9f5a237caaf1
Author: nuwanda <nuwanda@google.com>
Date:   Tue Aug 25 22:48:51 2020 +0000

    Add support for logging UMA histogram samples from trace config

    Now when histogram_samples category is set only the histograms listed
    in a trace config will be monitored. If there are no histograms in a
    trace config, the effect of enabling the histogram_samples category will
    remain the same: all the histograms will be monitored.

    Monitoring all the histograms results in a significant increase in
    trace size and processing time, that's why we need a way to monitor
    only a subset of histograms.

    Based on the events added to trace when enabling the histogram_samples
    category TBMv3 UMA metrics will be implemented.

    Bug: 1119834
2020-10-28 13:59:42 -04:00
mkarolin 1470f718fe net::LOAD_DO_NOT_SEND_COOKIES and LOAD_DO_NOT_SEND_AUTH_DATA removed.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/25eaa43022a6ac52292434e1b03cb72f8f98c74b

commit 25eaa43022a6ac52292434e1b03cb72f8f98c74b
Author: Matt Menke <mmenke@chromium.org>
Date:   Tue Aug 25 00:10:00 2020 +0000

    Remove net::LOAD_DO_NOT_SEND_COOKIES and net::LOAD_DO_NOT_SEND_AUTH_DATA.

    These two net::LoadFlags (along with net::LOAD_DO_NOT_SAVE_COOKIES) are
    being combined into network::mojom::CredentialMode::kOmit. This CL
    updates the remaining consumers of the two cookies to use
    CredentialsMode / allow_credentials / PrivacyMode instead.

    Unfortunately, there are still a bunch of consumers that are setting
    net::LOAD_DO_NOT_SAVE_COOKIES without either of the other two flags,
    so this CL leaves that one in place, for now.

    This CL also fixes the LOAD_DO_NOT_SAVE_COOKIES case, where we'd set
    privacy mode at the URLRequest layer, but then URLRequestHttpRequest
    would disable it in the RequestInfo struct unless cookies were blocked
    by the network delegate. The code now never sets PrivacyMode if only
    LOAD_DO_NOT_SAVE_COOKIES is set, which does slightly alter behavior in
    the LOAD_DO_NOT_SAVE_COOKIES + NetworkDelegate blocks cookies case, but
    the current behavior seems more consistent.

    This will also make it so that when the NetworkDelegate forces
    PrivacyMode, it will disable sending auth credentials. The impact
    on this is not expected to be significant, but it's worth being
    aware of.

    Bug: 799935
2020-10-28 13:59:42 -04:00
mkarolin 1805955590 Adjusted visibility of bat-native-ads:internal_config.
To fix:

ERROR at //brave/components/brave_ads/browser/BUILD.gn:122:1: Dependency not allowed.
source_set("testutil") {
^-----------------------
The item //brave/components/brave_ads/browser:testutil
can not depend on //brave/vendor/bat-native-ads:internal_config
because it is not in //brave/vendor/bat-native-ads:internal_config's visibility list: [
  //brave/vendor/bat-native-ads:*
  //brave/components/brave_ads/test:*
  //brave/test:*
]
2020-10-28 13:59:41 -04:00
mkarolin c8d0d8a63d Patches blink/renderer/BUILD.gn visibility.
To fix

ERROR at //third_party/blink/renderer/modules/modules.gni:28:3: Dependency not allowed.
  target(target_type, target_name) {
  ^---------------------------------
The item //brave/third_party/blink/renderer/modules/brave:brave
can not depend on //third_party/blink/renderer:config
because it is not in //third_party/blink/renderer:config's visibility list: [
  //third_party/blink/*
]
2020-10-28 13:59:41 -04:00
mkarolin 34699c103b Conflict-resolved patches from Chromium 86.0.4240.111 to Chromium 87.0.4250.0. 2020-10-28 13:59:41 -04:00
Mario Sanchez Prada d65fe20581 Update patches from Chromium 86.0.4240.111 to Chromium 87.0.4250.0. 2020-10-28 13:59:07 -04:00
Pranjal Jumde 5b06438115 Merge pull request #6949 from brave/no_login_brave_apps
Fix 11581: Disable sign-in with brave in brave://apps
2020-10-28 09:51:49 -07:00
Anthony Tseng bb075d5f9f Merge pull request #6881 from brave/components-tor
Refactor tor to brave/components
2020-10-28 09:30:37 -07:00
Emerick Rogul 68d7ed1892 Merge pull request #6889 from brave/rewards-split-scripts
Store Greaselion scripts by sender id and tab id
2020-10-28 11:43:40 -04:00
Nejc Zdovc 1730afa8f7 Merge pull request #6972 from brave/banner-pp
Adds pp link to the banner
2020-10-28 16:21:46 +01:00
Nejc Zdovc 58c0634890 Merge pull request #6973 from brave/remove-shadow
Removes qr box shadow
2020-10-28 16:20:24 +01:00
Emerick Rogul a1e76420a3 Store Greaselion scripts by sender id and tab id 2020-10-28 09:29:58 -04:00
NejcZdovc 365a0db92b Removes qr box shadow
Resolves https://github.com/brave/brave-browser/issues/12355
2020-10-28 08:31:37 +01:00
NejcZdovc 1796c9d1bd Adds pp link to the banner
Resolves https://github.com/brave/brave-browser/issues/12334
2020-10-28 07:27:16 +01:00
brave-builds 815399da50 1.18.15 2020-10-28 00:01:47 +00:00
Anthony Tseng 62cfbb85b1 Use tor_strings in components and address various review feedbacks 2020-10-27 16:27:24 -07:00
Anthony Tseng f7c65a925a Remove BraveTorClientUpdaterDelegate and avoid unused variable warning 2020-10-27 16:27:24 -07:00
Anthony Tseng e038c909c4 Fix enable_tor=false 2020-10-27 16:27:24 -07:00
Anthony Tseng 560f751c0e Put TorProfileServiceFactory behind ENABLE_TOR build flag 2020-10-27 16:27:24 -07:00
Anthony Tseng 4e658bdccb Move tor related tests out of test/BUILD.gn
and fix minor deps issues
2020-10-27 16:27:23 -07:00
Anthony Tseng eb844a44e2 Move navigation_throttles and tab_helpers to components/tor 2020-10-27 16:27:23 -07:00
Anthony Tseng 93b2f545d7 Move BraveTorClientUpdater 2020-10-27 16:27:23 -07:00
Anthony Tseng 1d74cf94c3 Move browser/tor & common/tor
except navigation_throttle and tab_helper
2020-10-27 16:27:23 -07:00
Anthony Tseng 64d6268d67 Remove TorConfig typemap 2020-10-27 16:27:23 -07:00
Anthony Tseng 08e8604cd4 Move buildflag 2020-10-27 16:27:22 -07:00
brave-builds d3906b91b7 1.18.14 2020-10-27 21:54:26 +00:00
Kamil Jozwiak de610b64a0 Merge pull request #6965 from brave/francois-recaptcha-12289
Revert "Remove navigator.deviceMemory (part 1)"
2020-10-27 17:52:29 -04:00
Pranjal Jumde 540a0e208d Fix 11581: Disable sign-in with brave in brave://apps 2020-10-27 14:49:21 -07:00
Pranjal Jumde 66243fdaaf Merge pull request #6963 from brave/fix_lint
Fix #12347: Fix lint error + rust deps for CI
2020-10-27 14:47:47 -07:00
justnom 51bb4e45a2 Merge pull request #6967 from brave/update-aptly-publish
Adding GPG passphrase and detached tty flag for aptly publishing
2020-10-27 17:33:48 -04:00
justnom f3d3138370 Removing explicit passphrase option 2020-10-27 16:17:11 -04:00
justnom ff4f26e455 Adding GPG passphrase and detached tty flag for aptly publishing 2020-10-27 15:06:35 -04:00
Pranjal Jumde 0e34de04c3 updating RUST_DEPS_PACKAGE_VERSION to 0.1.5 2020-10-27 11:53:25 -07:00
Francois Marier 8e948e5cd6 Revert "Remove navigator.deviceMemory (part 1)" (fixes brave/brave-browser#12289)
This reverts commit 740b4e315c.
2020-10-27 11:23:14 -07:00
Pranjal Jumde 6fa7b2be13 Fix #12347: Fix lint error in browser/ui/webui/brave_webui_source.cc 2020-10-27 11:07:09 -07:00
brave-builds 2ddab4fe81 1.18.13 2020-10-27 18:01:41 +00:00
Nejc Zdovc c0f6aca3bc Merge pull request #6951 from brave/uphold-equities
Adds uphold equities card
2020-10-27 17:44:26 +01:00
NejcZdovc d4a1794599 Adds uphold equities card
Resolves https://github.com/brave/brave-browser/issues/12276
2020-10-27 17:39:07 +01:00
iefremov 5d40a7526d Merge pull request #6938 from brave/ie_origin_crash
Avoid crash by using proper origin.
2020-10-27 22:05:32 +07:00
Nejc Zdovc 18cd79dc62 Merge pull request #6950 from brave/rewards-reset
Rewards reset fixes
2020-10-27 15:02:28 +01:00
NejcZdovc 9b2022ae5c Fixes your wallet text case
Resolves https://github.com/brave/brave-browser/issues/12299
2020-10-26 18:07:57 +01:00
brave-builds 75707e793b 1.18.12 2020-10-26 10:01:13 +00:00
Brian Clifton cd24a16b1a Merge pull request #6892 from 0xedward/update-safety-check-settings-text
Update Safety check description text on brave://settings
2020-10-26 00:17:05 -07:00