Skip to content

Commit

Permalink
Uplift of #5109 (squashed) to beta
Browse files Browse the repository at this point in the history
  • Loading branch information
brave-browser-releases committed Mar 31, 2020
1 parent db0897b commit 76c32d6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions common/shield_exceptions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ bool IsBlockedResource(const GURL& gurl) {

bool IsWhitelistedFingerprintingException(const GURL& firstPartyOrigin,
const GURL& subresourceUrl) {
// Always allow embeds from public.tableau.com while fingerprinting
// protections are being reworked to need less exceptions.
static const std::vector<URLPattern> embed_exceptions = {
URLPattern(URLPattern::SCHEME_ALL, "https://public.tableau.com/*"),
URLPattern(URLPattern::SCHEME_ALL, "https://www.arcgis.com/*"),
};
for (const auto exception : embed_exceptions) {
if (exception.MatchesURL(subresourceUrl)) {
return true;
}
}

static std::map<URLPattern, std::vector<URLPattern> > whitelist_patterns = {
{
URLPattern(URLPattern::SCHEME_ALL, "https://uphold.com/"),
Expand Down

0 comments on commit 76c32d6

Please sign in to comment.