Skip to content

Commit 91a5ef2

Browse files
committed
Extend comments.
1 parent d9fe29b commit 91a5ef2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

browser/net/brave_site_hacks_network_delegate_helper.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,12 @@ int OnBeforeStartTransaction_SiteHacksWork(
149149
}
150150

151151
// Special case for handling top-level redirects. There is no other way to
152-
// normally change referrer in net::URLRequest during redirects.
152+
// normally change referrer in net::URLRequest during redirects
153+
// (except using network::mojom::TrustedURLLoaderHeaderClient, which
154+
// will affect performance).
155+
// Note that this code only affects "Referer" header sent via network - we
156+
// handle document.referer in content::NavigationRequest (see also
157+
// BraveContentBrowserClient::MaybeHideReferrer).
153158
if (!ctx->allow_referrers && ctx->allow_brave_shields &&
154159
ctx->redirect_source.is_valid() &&
155160
ctx->resource_type == blink::mojom::ResourceType::kMainFrame &&

0 commit comments

Comments
 (0)