Files
brave-core/patches/chrome-browser-ui-browser_navigator.cc.patch
T

21 lines
1007 B
Diff

diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc
index fd72594b74be082fa83c7e5835a1e7129ff782ed..1a7988478ed539855f22ae811f2476ac18957c7c 100644
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -552,6 +552,7 @@ base::WeakPtr<content::NavigationHandle> Navigate(NavigateParams* params) {
// Block any navigation requests in locked fullscreen mode.
return nullptr;
}
+ BRAVE_ADJUST_NAVIGATE_PARAMS_FOR_URL
// Open System Apps in their standalone window if necessary.
// TODO(crbug.com/1096345): Remove this code after we integrate with intent
@@ -839,6 +840,7 @@ base::WeakPtr<content::NavigationHandle> Navigate(NavigateParams* params) {
bool IsHostAllowedInIncognito(const GURL& url) {
std::string scheme = url.scheme();
base::StringPiece host = url.host_piece();
+ if (!IsHostAllowedInIncognitoBraveImpl(host)) return false;
if (scheme != content::kChromeUIScheme)
return true;