Skip to content

Commit

Permalink
Review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cypt4 committed Oct 18, 2022
1 parent 3764ab1 commit 276d0c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions browser/net/ipfs_redirect_network_delegate_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ int OnHeadersReceived_IPFSRedirectWork(
if (!ctx->browser_context)
return net::OK;

// Auto-redirect gateway-like urls is enabled only for top-level frames
// to avoid mixed content corner cases.
if (ctx->resource_type == blink::mojom::ResourceType::kSubFrame) {
return net::OK;
}
Expand Down

0 comments on commit 276d0c7

Please sign in to comment.