Commit Graph
246 Commits
Author SHA1 Message Date
Mario Sanchez Prada c5acd1be39 Adapt usage of deprecated "whitelist" manifest key for "allowlist"
This is no longer supported after a period of supporting the old
"whitelist" key along with the new "allowlist" one, but now we
need to migrate for real.

Chromium changes:

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

commit dc12ff7d11e5de868005e17df701d8b0c3730a1c
Author: Karandeep Bhatia <karandeepb@chromium.org>
Date:   Thu Jan 14 14:19:40 2021 +0000

    Use auto-generated manifest parsing for import, export manifest keys.

    Also
     - Remove support for legacy export.whitelist manifest key.
     - This also revealed that json_schema_compiler doesn't correctly handle
    C++ reserved keywords (like export) correctly in the auto-generated code
    since using them directly causes compilation errors. Fix this.

    BUG=1113513, 842354

https://chromium.googlesource.com/chromium/src.git/+/9486b056f09a97fb2ba5ebb1b4c00f2dae6630c4

commit 9486b056f09a97fb2ba5ebb1b4c00f2dae6630c4
Author: Devlin Cronin <rdevlin.cronin@chromium.org>
Date:   Fri May 18 05:42:04 2018 +0000

    [Extensions] Use `allowlist` in SharedModule code

    Rename the shared module property to 'allowlist'. The legacy 'whitelist'
    key will continue to work until we update any uses of it.

    Bug: 842354
2021-03-23 14:54:56 -04:00
Brian R. Bondy 10ff512791 Change hamburger menu from Crypto Wallets -> Wallet 2021-03-12 22:36:13 -05:00
Anthony Tseng 1981cc2c82 Fix control port string overflow 2021-03-12 08:40:06 -08:00
Anthony Tseng 86baff8134 Add unit test for TorFileWatcher 2021-03-03 11:36:24 -08:00
Anton Lazarev e6ff8aa477 Merge pull request #7882 from brave/ephemeral-storage-qa-testpage
Add automation for tests from ephemeral storage QA test page
2021-02-18 18:25:43 -08:00
Anton Lazarev f934ff475d add automation for tests from ephemeral storage QA test page 2021-02-18 18:21:49 -08:00
zenparsing f9507f2463 Move ledger database tests from browser to unit tests 2021-02-17 15:30:28 -05:00
Anton Lazarev cf2c1a580f add test for service worker adblocking 2021-02-10 07:56:48 -08:00
Brian R. Bondy 4db2bc311b Add and adjust tests for resolving IPFS URIs 2021-01-27 15:14:25 -05:00
Brian R. Bondy 6913c39add chrome.ipfs.launch should not allow install of component
We expose this only to IPFS Companion, but we should not allow go-ipfs to be installed from that extension, only by explicit user consent.
2020-12-21 19:02:10 -05:00
Martin Robinson 61efb6a6be Merge pull request #7387 from brave/ephemeral-cookie-storage-mimimal-network-cookies
Add ephemeral storage support for network cookies
2020-12-16 14:37:08 +01:00
Martin Robinson f02a83a078 Respond to review comments (dec15 21:43) 2020-12-15 21:45:45 +01:00
Anthony Tseng 8b5636c117 Add a test case for allow in tor and split mode 2020-12-14 14:59:35 -08:00
Mario Sanchez Prada 303de51eff Revert "Add browsertest for Flash"
This code is no longer valid since Chromium 88 has entirely dropped
Flash support, removing along with it the FlashDownloadInterception
class (see crrev.com/c/2458506), rendering this code useless.

This reverts commit b4f24df508.
2020-12-08 15:25:02 -05:00
Anton Lazarev c8099c997a update tests
the "blank" loading tests are not useful anymore now that we block
requests outright, so they've been removed.
2020-12-01 13:31:59 -05:00
Anton Lazarev 9719465c53 Merge pull request #7030 from brave/bsc-reland-6632
Explicitly cancel blocked requests (attempt 2)
2020-11-09 12:28:39 -05:00
Jocelyn Liu e81fc15bb9 Test third party cookie blocking for ipfs localhost 2020-11-05 04:36:05 -08:00
Anton Lazarev f15718107e modernize adblock tests 2020-11-03 14:03:30 -05:00
Brian R. Bondy 0943fd6723 Merge pull request #7023 from brave/ipfs-detection-via-header
Use x-ipfs-path header for IPFS detection infobar
2020-11-03 11:57:43 -05:00
Brian R. Bondy 59b3257352 Use x-ipfs-path header for IPFS detection infobar 2020-11-02 19:49:54 -05:00
Anton Lazarev 1e53eb41e4 Merge pull request #6622 from brave/bypass-incognito-detection
Bypass private browsing mode detection
2020-11-02 17:33:38 -05:00
Anton Lazarev 8f2da0a253 bypass incognito detection 2020-11-02 10:24:57 -05:00
Martin Robinson e17234b0e4 Add Ephemeral storage support for localStorage and sessionStorage
Ephemeral storage persists DOM storage in third-party frames in a
partitioned storage area that is unique to each top-level frame eTLD.
The storage area is persisted until no tabs from the top-level eTLD
exist.

This change also adds a runtime flag for ephemeral storage, which is
only useful if third-party storage is activated. A future change will
selectively enable third-party storage when the flag is active.
2020-11-02 09:58:38 +01:00
Anthony Tseng af5d42e78c Update autoplay browsertest to prevent blocking from breaking 2020-10-29 15:55:43 -07:00
Mark Pilgrim bb5e027556 Implement navigator.userAgent farbling in workers
feedback
2020-10-28 19:03:11 -04:00
NejcZdovc c726b5b73a Fixes tests 2020-10-22 08:45:37 +02:00
Pete Miller c239ff8cfc Merge pull request #6841 from brave/greaselion-prop-minimum-version
Greaselion accepts "minimium_brave_version" config property and "supports-minimum-browser-version" precondition
2020-10-20 11:20:53 -07:00
Francois Marier 1dcd6ed9ae Merge pull request #6763 from brave/enable-download-protection-6267
Re-enable Safe Browsing download protection
2020-10-19 16:23:12 -07:00
Francois Marier fd247c8f4f Filter personal data out of download protection pings (fixes brave/brave-browser#6267) 2020-10-19 14:08:32 -07:00
Pete Miller 5920a6dc43 Greaselion accepts "minimium_brave_version" config property and "supports-minimum-brave-version" precondition
Allows scripts to specify which minimum version of brave they are compatible with (supports wildcards). Also contains another precondition so that browsers which do not support this new config property can ignore scripts targeted to specific minimum brave versions. That new precondition can be temporary and removed in a few months when everyone is upgraded.
2020-10-19 09:54:02 -07:00
Jocelyn Liu 450903d8ff fix tests 2020-10-15 17:47:28 -07:00
Mark Pilgrim 3e491a4f7c Implement WebGL2 farbling
tests

tests
2020-10-13 13:03:00 -04:00
Brian R. Bondy 62689de5e7 Add API for IPFS Companion 2020-10-09 12:57:52 -04:00
Mark Pilgrim b8946f9972 Change default in ShouldUseUserAgentOverride for OOPIF
tests

tests
2020-10-08 15:54:10 -04:00
Emerick Rogul 5a929c39d2 Add localization support to Greaselion 2020-09-27 21:20:23 -04:00
Francois Marier cc3e7cff8d Add browsertest for the query string filter. 2020-09-22 11:30:03 -07:00
Mark Pilgrim 17d62d82f0 Refactor BraveSessionCache as an ExecutionContext supplement
hook up WorkerContentSettingsClient, add OffscreenCanvas test

add navigator.hardwareConcurrency tests

lint
2020-09-16 16:07:47 -04:00
Brian R. Bondy 9a314abc4f window.web3 => window.ethereum Dapp detection 2020-09-15 18:19:17 -04:00
Brian R. Bondy 91bda0606c Add IPFS infobar test 2020-09-02 11:14:38 -04:00
Brian R. Bondy a4b04e8de4 Fix tests for BraveIpfsClientUpdaterTest 2020-09-02 11:14:37 -04:00
drbh 34197b2800 base files for ipfs CRX mgmt 2020-09-02 11:10:39 -04:00
Francois Marier 25e3b6f5df Make all favicon requests on-demand (fixes brave/internal#716)
This patch can be dropped once https://crbug.com/1096660 is fixed
as long as the test is retained and still passes.
2020-08-31 14:43:35 -07:00
NejcZdovc e9892bcfd7 Fixes browser tests
Resolves https://github.com/brave/brave-browser/issues/11328
2020-08-20 07:13:23 +02:00
NejcZdovc 80991a5089 Adds event logging system
Resolves https://github.com/brave/brave-browser/issues/10781
2020-08-19 13:37:45 +02:00
NejcZdovc dcb73a569a Removes annon address from external wallet flow
Resolves https://github.com/brave/brave-browser/issues/11150
2020-08-11 14:35:51 +02:00
bridiver 9e7efe2a22 fix cookie tests for new chromium cookie policy
https://blog.chromium.org/2020/01/building-more-private-web-path-towards.html
https://source.chromium.org/chromium/chromium/src/+/2fbb8e5c2bce66bede14cbfe9c6b427b835f67d9

commit 2fbb8e5c2bce66bede14cbfe9c6b427b835f67d9
Author: Lily Chen <chlily@chromium.org>
Date:   Wed Nov 13 00:31:06 2019 +0000

    Remove SameSite features from experimental web platform features

    SameSiteByDefaultCookies and CookiesWithoutSameSiteMustBeSecure were
    added to the set of features enabled with
    --enable-experimental-web-platform-features in
    https://crrev.com/c/1691522.

    This CL removes those features from the experimental web platform
    features but retains test coverage for them.

    Bug: 953306, 954551, 961439
2020-08-06 17:32:14 -04:00
Mark Pilgrim a4766504ac Quick fix for crash in CanvasAsyncBlobCreator
tests

use DynamicTo instead

lilnt
2020-08-03 17:43:20 -04:00
Nejc Zdovc 673590f291 Merge pull request #6000 from brave/new-persona
Implements new persona api
2020-07-28 08:09:04 +02:00
Nejc Zdovc 4c0ed64f7a Implements new balance api 2020-07-24 13:57:32 +02:00
Nejc Zdovc a4cbc1be6e Implements new persona api
Resolves https://github.com/brave/brave-browser/issues/8428
2020-07-24 13:25:51 +02:00