File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,12 @@ int OnBeforeStartTransaction_SiteHacksWork(
149
149
}
150
150
151
151
// 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).
153
158
if (!ctx->allow_referrers && ctx->allow_brave_shields &&
154
159
ctx->redirect_source .is_valid () &&
155
160
ctx->resource_type == blink::mojom::ResourceType::kMainFrame &&
You can’t perform that action at this time.
0 commit comments