Skip to content

Commit

Permalink
Remove IsWebUIAllowedToMakeNetworkRequests exception for brave.com
Browse files Browse the repository at this point in the history
  • Loading branch information
bbondy committed Jul 4, 2018
1 parent a6ff0ed commit cd16eab
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
diff --git a/extensions/browser/api/web_request/web_request_permissions.cc b/extensions/browser/api/web_request/web_request_permissions.cc
index 426bdc336021722db43af2c984ae5675a878f7fd..4315e66ff33d4aecb6610ed2125aed70e66449b2 100644
index 426bdc336021722db43af2c984ae5675a878f7fd..f15ed0c6e9c9051dadd841ee12ed4959cabce009 100644
--- a/extensions/browser/api/web_request/web_request_permissions.cc
+++ b/extensions/browser/api/web_request/web_request_permissions.cc
@@ -87,6 +87,11 @@ bool IsWebUIAllowedToMakeNetworkRequests(const url::Origin& origin) {
@@ -87,6 +87,10 @@ bool IsWebUIAllowedToMakeNetworkRequests(const url::Origin& origin) {
return
// https://crbug.com/829414
origin.host() == "print" ||
+#if defined(BRAVE_CHROMIUM_BUILD)
+ // https://github.com/brave/brave-browser/issues/273
+ origin.host() == "newtab" ||
+ origin.host() == "brave.com" ||
+#endif
// https://crbug.com/831812
origin.host() == "sync-confirmation" ||
Expand Down

0 comments on commit cd16eab

Please sign in to comment.