Commit Graph
152 Commits
Author SHA1 Message Date
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
Serg c86eb15346 Fixes code review suggestions 2021-03-25 11:14:32 -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 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 744af6e37a moves Promise from navigator.brave_wallet to window.ethereum directly 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
bridiver 0106a2588b check for null observer 2021-03-17 13:19:05 -07:00
bridiver fe9f81b773 add parent method call 2021-03-15 18:16:33 -07:00
bridiver a96eb420a7 request cosmetic filter rules when we get the url 2021-03-15 18:16:33 -07:00
Serg e988595fec adds a flag to use native/extension cosmetic filters approach on desktop 2021-03-05 19:01:31 -05:00
Serg 02fb8d0309 fixes ads on yt and gets rid of csp error 2021-02-24 21:38:34 -05:00
bridiver fb3c0f5561 buildtools/checkdeps/checkdeps.py brave --extra-repos=brave runs succesfully 2021-02-06 13:34:00 -07:00
mkarolin cd8030433f Formatting fix. 2021-02-04 23:52:56 -05:00
mkarolin 1736299f10 Disables Serial API in blink.
Per security team request.
2021-02-04 23:52:55 -05:00
mkarolin 6b1b45fd35 Disables WebNFC in blink.
Per security team request.
2021-02-04 23:52:54 -05:00
mkarolin c55c55ce29 Temporarily disabling WebBundles test.
Not sure this can be fixes as is due to the Chromium change below.
Need to come up with a different way of testing that the origin trial
would not work.

Chromium change:

https://chromium.googlesource.com/chromium/src.git/+/529f43bc5bed70eda143373a588611acce3bc89e

commit 529f43bc5bed70eda143373a588611acce3bc89e
Author: Hayato Ito <hayato@chromium.org>
Date:   Mon Dec 7 14:25:45 2020 +0000

    Support WebBundle Subresource loading via Network Service

    This is a follow-up to https://crrev.com/c/2560526.

    This CL changes the implementation of WebBundle subresource loading
    from "renderer oriented" to "network service oriented".

    Before this CL, a renderer parses a WebBundle and serves a subresource
    from there directly.

    After this CL, they are done in the Network Service, instead of a renderer.

    The motivation we're changing our design is "we should honor CORB
    [1]". A renderer shouldn't have cross-origin data in their memory.
    See the design doc [2] for details.

    Note this CL removes
    blink/renderer/platform/loader/fetch/url_loader/web_bundle_subresource_loader_test.cc,
    which was already moved to
    services/network/web_bundle_url_loader_factory_unittest.cc in a previous CL.

    - [1]: https://source.chromium.org/chromium/chromium/src/+/master:services/network/cross_origin_read_blocking_explainer md
    - [2]: https://docs.google.com/document/d/1_AqUBS4Gr45MPPtXGTUl7Q0DMIEw2zUeWO0zo6Sj0z4/edit

    Bug: 1082020
2021-02-04 23:52:53 -05:00
mkarolin 21aefaac5b NativeFileSystem was renamed to FileSystemAccess.
Also, NativeFileSystem origin trial was removed.

Chromium changes:

https://source.chromium.org/chromium/chromium/src/+/07ecb97fd6498002303f162d9e6cc5f248599eff

commit 07ecb97fd6498002303f162d9e6cc5f248599eff
Author: Austin Sullivan <asully@chromium.org>
Date:   Fri Jan 8 15:16:17 2021 +0000

    Rename native_file_system -> file_system_access part 3/x.

    This finishes renaming in blink, with the exception of web platform
    tests.

    Renames "NativeFileSystem" to FileSystemAccess or FileSystem.
    Generally, NativeFileSystem is renamed to FileSystemAccess.
    In cases where IDL exposes something as "FileSystem", NativeFileSystem
    is renamed to "FileSystem".

    Bug: 1110509

https://source.chromium.org/chromium/chromium/src/+/9926254ea8d51ce3845d468262eb5cfa5020754f

commit 9926254ea8d51ce3845d468262eb5cfa5020754f
Author: Austin Sullivan <asully@chromium.org>
Date:   Fri Jan 8 16:48:02 2021 +0000

    [FSA] Remove NativeFileSystem2 origin trial

    The origin trial is no longer needed, since the feature has already
    shipped.

    This change was originally proposed in this refactor [1], but was split
    into another CL.

    [1] https://crrev.com/c/2601576

    Bug: 1110509
2021-02-04 23:52:53 -05:00
mkarolin 6a9db8fab7 Disable serveral blink runtime features.
Fixes brave/brave-browser#11133
Fixes brave/brave-browser#11407
Fixes brave/brave-browser#11546
Fixes brave/brave-browser#11547

- Disables features via Chromium features:
  * Direct Sockets
  * Lang Client Hint Header
  * Signed Exchange Prefetch Cache For Navigations
  * Subresource Web Bundles

- Disabled the following blink features in
  BraveContentRendererClient::SetRuntimeFeaturesDefaultsBeforeBlinkInitialization
  since they don't have Chromium features:
  * Digital Goods
  * Native File System (File System Access)
- Added browser tests for these features

- Modified redirect-cc.py to allow overriding files under out/XXX/gen

- Added an override for blink::origin_trials::IsTrialValid and overrides
  for blink::OriginTrialContext methods AddFeature and AddForceEnabledTrials
  for trials:
  * NativeFileSystem2
  * SignedExchangeSubresourcePrefetch
  * SubresourceWebBundles
- Added browser tests for trials disablement.
2021-01-27 16:31:01 -05:00
Serg 4247e632ed corrects components/cosmetic_filters/renderer dependencies 2021-01-21 10:23:43 -05:00
Serg f8d73000b5 moves components/cosmetic_filters/content/renderer to components/cosmetic_filters/renderer 2021-01-21 09:38:40 -05:00
Serg 7e375125af clean up and formatting 2021-01-20 19:26:32 -05:00
Serg ba3b9a9934 moves JS executions to renderer process 2021-01-20 19:26:32 -05:00
Serg f3b6236501 executes gn format on problem gn files 2021-01-20 19:26:32 -05:00
Serg 7401f7a57c addresses some code review feedbacks 2021-01-20 19:26:32 -05:00
Serg de97795c2b adds a pump functionality to cf 2021-01-20 19:26:32 -05:00
Serg bc3377f60d enable cf on desktop/disable extension 2021-01-20 19:26:32 -05:00
Serg 3bc0ae3f1f guards cosmetic filters for Android implementation only 2021-01-20 19:26:32 -05:00
Serg a36b8a00aa android cosmetic filters css injections 2021-01-20 19:26:32 -05:00
Gyuyoung Kim dea4b4ae57 Fix deps in //brave/renderer
Resolves brave/brave-browser#10632.
2020-09-23 10:03:04 +09:00
Pranjal Jumde 9c2501854e Fix 9365: Add gn check to npm scripts 2020-07-20 09:58:02 -07:00
mkarolin d80b85d303 ContentSettingsAgentImpl moved to //components.
Chromium change:

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

commit af3597cb7e26db8909a4883bd528efb84c6d7ce2
Author: Clark DuVall <cduvall@chromium.org>
Date:   Wed Apr 15 19:20:24 2020 +0000

    Move ContentSettingsAgentImpl to //components/content_settings

    This splits chrome-specific logic into
    ChromeContentSettingsAgentDelegate, and moves common logic into
    //components/content_settings. This will allow sharing the content
    settings agent with WebLayer.

    The unit test for WhitelistedSchemes was moved into the browser tests,
    which means we no longer need a static version of
    IsWhitelistedForContentSettings() just for testing.

    Bug: 1065537
2020-07-01 18:11:38 -04:00
Mark Pilgrim 5d2405c73c Fall through to upstream logic that allows some videos to autoplay muted
use anonymous namesapce

activation policy [fixes Jitsi autoplaying audio elements]

feedback
2020-06-29 14:18:54 -07:00
Mark Pilgrim 5a2371c85d Revert "Attempt 2: fall through to upstream logic that allows some videos to autoplay muted" 2020-06-29 10:31:50 -04:00
Simon Hong 0dd17cce68 Address review comments
Moved browser tests from component to brave layer
Changed method signature
2020-06-26 06:06:32 +09:00
Simon Hong 0da9ed5c47 Remove chrome layer dependency from brave_shields_util.[cc|h] 2020-06-26 06:06:32 +09:00
Mark Pilgrim 5c2ff5d56e Fall through to upstream logic that allows some videos to autoplay muted
use anonymous namesapce

activation policy [fixes Jitsi autoplaying audio elements]

feedback

remove unnecessary patch
2020-06-25 09:12:04 -04:00
Simon Hong 702a17ba25 Don't use CONTENT_SETTING_DEFAULT for FP setting
CONTENT_SETTING_DEFAULT means deleting the current content setting.
With DEFAULT, it always use global FP setting.
But we want DEFAULT as a standard FP blocking instead of fallback to
global settings. Use secondary pattern for marking setting as balanced mode.
2020-06-24 07:51:07 +09:00
pes 23a718887b Merge pull request #5533 from brave/local-storage-exception
don't throw an exception when accessing window.localStorage or window…
2020-06-15 08:55:36 -07:00
Ivan Efremov 2dcdfccc54 8696: Pleasing linter. 2020-06-14 13:36:30 +07:00
Ivan Efremov 78ac2f902e 8696: Properly tie referrer blocking to shields.
I had to restore referrer blocking in site hacks, because
it is needed for subresource queries (this does not help
us with redirects though).
2020-06-12 23:12:38 +07:00
Ivan Efremov 2e4a4833db 8696: Update and imporve tests. 2020-06-12 23:12:38 +07:00
Ivan Efremov feeb9b9388 8696: Change referrer blocking in Brave.
Previously we used to spoof referrers for iframe and subresource
fetches and this has been causing some webcompat problems.

This PR removes this machinery, makes
'strict-origin-when-cross-origin' the default policy, prevents
this policy from downgrading and keeps referrer removal for
top-level navigations.
2020-06-12 23:12:32 +07:00
Ivan Efremov 749be5845e More browsertests against localStorage access. 2020-06-12 20:13:11 +07:00
Ivan Efremov 1b7018d283 Adding a browsertest against the localStorage shields guard. 2020-06-11 20:25:11 +07:00
Mark Pilgrim dcbc5a1b74 Revert "Fall through to upstream logic that allows some videos to autoplay muted" 2020-06-09 11:49:09 -04:00
bridiver d95d5cb707 remove tests that are specific to fingerprinting v1 2020-06-03 13:44:53 -07:00