Commit Graph
71 Commits
Author SHA1 Message Date
sergey 808f408f85 Fix android build 2021-03-25 20:29:37 +03:00
Sergey f989bb2ea8 Moved tests out of components to fix dependencies 2021-03-25 12:26:36 +03:00
Sergey 7e2560e589 Added simple cid validation 2021-03-24 00:44:11 +03:00
Brian R. Bondy b31185e875 Revert "Merge pull request #8299 from brave/revert_8257"
This reverts commit 96aebb9ee6, reversing
changes made to 7e073b26c1.
2021-03-18 20:26:48 -04:00
Jocelyn Liu 25a3c5c48d Revert "Merge pull request #8257 from brave/ipfs-android"
This reverts commit 534a1e122d, reversing
changes made to 103be2b8c1.
2021-03-18 14:02:59 -07:00
Brian R. Bondy 534a1e122d Merge pull request #8257 from brave/ipfs-android
Add IPFS gateway support on Android
2021-03-18 12:01:39 -04:00
Sergey 323b14fc4a Merge pull request #8254 from brave/ipfs-badge-public-gateways
Resolve ipfs links through x-ipfs-path and dnslink values
2021-03-18 09:14:33 +03:00
Brian R. Bondy 7f0bc31b89 Add IPFS gateway support on Android 2021-03-17 13:09:14 -04:00
Sergey 0c30b09748 Merge pull request #8263 from brave/ipfs-public-gateway-conversion
Convert 127.0.0.1 to localhost for default ipfs gateways
2021-03-16 20:42:34 +03:00
sergey 732c6d9709 Convert 127.0.0.1 to localhost for default ipfs gateways 2021-03-16 13:16:49 +03:00
sergey 974fb63e91 Rename brave://ipfs to brave://ipfs-internals 2021-03-16 10:38:10 +03:00
sergey 018e7ecc28 Resolve ipfs links through x-ipfs-path and dnslink values 2021-03-16 10:09:34 +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
sergey 810dd1a71e Add error message 2021-02-17 17:17:52 +03:00
sergey d85c162540 Migrate protocol handlers from infobar 2021-02-17 17:17:52 +03:00
Sergey d3c52e8ae1 Use full page explainer for unconfigured ipfs:// loads instead of loading content with an infobar 2021-02-17 17:17:52 +03:00
Sergey cd2b32350d 13872: Improve handling of address bar display for IPFS and IPNS
We should change this to only keep ipfs:// and ipns:// when the address being loaded when:
i) Using the Brave node and the port matches the Brave node's port.
ii) Using the public node and the port matches the public node, and it is localhost.
iii) When user enters custom public gateway Brave should always replace raw IP (127.0.0.1) with localhost,
as that enables subdomains and origin isolation. Raw IP can't have subdomains and
all content roots share the same origin, which we don't want in browser.
2021-02-06 16:09:44 -05:00
Brian R. Bondy 772fb812ab Collapse similar IPFS utility files 2021-01-29 15:35:15 -05:00
Brian R. Bondy 2d41bded8a Allow TranslateIPFSURI to resolve to newer subdomain URLs 2021-01-28 14:30:35 -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
Brian R. Bondy e4ff9f8a51 Be more restrictive for triggering IPFS infobar 2020-12-30 20:35:55 -05:00
Jocelyn Liu d9d3733b49 Address review comments
- Save browser context in BraveRequestInfo.
- Remove GetBrowserContextToUse override in IpfsServiceFactory.
- Remove unused headers.
2020-12-03 14:21:38 -08:00
Jocelyn Liu f5fd1a5b83 Check if IPFS resolution is enabled before redirect URL requests.
This commit makes per_profile as True for IPFS policy, so we could move IPFS
checks to component utils to be used in the IPFS network delegate helper.
2020-12-03 14:21:38 -08:00
Brian R. Bondy 1df479bbd1 Remove external protocol handling 2020-11-27 10:35:59 -05:00
Jocelyn Liu b1154f6b95 Merge pull request #7191 from brave/ipfs_reverse_url_rewrite
Reverse rewrite [ipfs|ipns].localhost URL back to [ipfs|ipns]:// URL
2020-11-19 13:40:58 -08:00
Jocelyn Liu a5e884dd53 Reverse rewrite [ipfs|ipns].localhost URL back to [ipfs|ipns]:// URL 2020-11-18 17:07:04 -08:00
Anthony Tseng b03d2c44db Fix tests 2020-11-18 15:13:22 -08:00
Jocelyn Liu c2fe0b912f Use different IPFS ports for different channels 2020-11-17 09:53:03 -08:00
Jocelyn Liu 8b9c2482e2 Add set cookie test and fix existing tests 2020-11-05 04:36:05 -08:00
Brian R. Bondy 0ad1330984 Don't dcheck for IsMainFrame in IPFSTabHelper 2020-11-03 12:44:08 -05:00
Brian R. Bondy 59b3257352 Use x-ipfs-path header for IPFS detection infobar 2020-11-02 19:49:54 -05:00
Jocelyn Liu 830a2df5e8 Tests for ipfs policy 2020-10-30 08:02:57 -07:00
Jocelyn Liu 3292a974e8 Add IPFSEnabled policy to control IPFS feature 2020-10-30 08:02:54 -07:00
Brian R. Bondy 9006a39105 Add P3A for IPFS 2020-10-29 11:37:31 -04:00
mkarolin 33dc261aac Lint fix. 2020-10-28 14:04:00 -04:00
Mario Sanchez Prada 9b2f6e55a1 Fix IPFSTabHelperTest tests that were timing out
The Chromium's EmbeddedTestServer does no longer resolves dweb.link
properly for and these tests timeout as a result of it, so we need
to use a different gateway, let's use cloudfare-ipfs.com instead.
2020-10-28 14:04:00 -04:00
Anthony Tseng 08e8604cd4 Move buildflag 2020-10-27 16:27:22 -07:00
Jocelyn Liu 14aa3c7d25 Update IPFS ports in tests 2020-10-13 09:21:36 -07:00
Brian R. Bondy 938ad2afa4 clang-format on IPFS files 2020-10-12 16:47:44 -04:00
Brian R. Bondy c3a8f2947c Collapse components/ipfs/browser and components/ipfs/common into components/ipfs 2020-10-12 16:32:05 -04:00
Jocelyn Liu 9e285cba44 Remove redundant class wrapper for ipfs util functions 2020-10-08 16:08:24 -07:00
Jocelyn Liu 10c3c72c3d Move translate_ipfs_uri.cc/h from components/ipfs/browser to components/ipfs/common 2020-10-06 21:48:37 -07:00
Brian R. Bondy 44d379080c Remove delegates 2020-09-29 16:57:07 -04:00
Brian R. Bondy c0f42d61b1 clang-format IPFS files 2020-09-29 11:48:01 -04:00
Brian R. Bondy a1d9ca9e68 Refactor IPFS from brave/browser ipfs to components/ipfs 2020-09-29 11:26:21 -04:00
Brian R. Bondy f4b409032b Show gateway URL instead of masking as ipfs scheme for gateway
Only show ipfs:// for the local Gateway
2020-09-22 11:55:50 -04:00
Jocelyn Liu 4a6f44243c Do not rewrite IPFS URL in unsupported profiles 2020-09-17 12:38:46 -07:00
Jocelyn Liu a184c7958a Add tests to ensure IPFS is disabled in OTR profiles, Tor profiles, and guest sessions 2020-09-17 10:09:59 -07:00
Jocelyn Liu 3e0f1c02ec Disable IPFS in OTR profiles, Tor profiles, and guest sessions 2020-09-17 09:43:08 -07:00
Brian R. Bondy 7e3d3f6e84 Fix deps with brave_wallet constants 2020-09-15 14:36:28 -04:00