Skip to content

Commit

Permalink
Merge pull request #4186 from brave/fix-7291
Browse files Browse the repository at this point in the history
Fixing sec issue
  • Loading branch information
ryanml authored and bsclifton committed Dec 11, 2019
1 parent 30f10f3 commit ba540bb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions patches/chrome-browser-extensions-extension_tab_util.cc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/chrome/browser/extensions/extension_tab_util.cc b/chrome/browser/extensions/extension_tab_util.cc
index 4e61dc7da6900c5080040559461dc4cfa41cfd25..021f7f746df58cfd755f79e010edafcbc805c96b 100644
--- a/chrome/browser/extensions/extension_tab_util.cc
+++ b/chrome/browser/extensions/extension_tab_util.cc
@@ -755,6 +755,7 @@ bool ExtensionTabUtil::IsKillURL(const GURL& url) {
GURL fixed_url =
url_formatter::FixupURL(url.possibly_invalid_spec(), std::string());
if (!fixed_url.SchemeIs(content::kChromeUIScheme))
+ if (!fixed_url.SchemeIs(content::kBraveUIScheme))
return false;

base::StringPiece fixed_host = fixed_url.host_piece();

0 comments on commit ba540bb

Please sign in to comment.