Files
brave-core/patches/content-browser-renderer_host-render_frame_host_impl.cc.patch
T

29 lines
1.6 KiB
Diff

diff --git a/content/browser/renderer_host/render_frame_host_impl.cc b/content/browser/renderer_host/render_frame_host_impl.cc
index be7a71030dc5e30b3aa8945384c7a68ec7e49225..62e7a9502e007850b2bfb9772105623526ce6d60 100644
--- a/content/browser/renderer_host/render_frame_host_impl.cc
+++ b/content/browser/renderer_host/render_frame_host_impl.cc
@@ -5438,6 +5438,7 @@ net::IsolationInfo RenderFrameHostImpl::ComputeIsolationInfoInternal(
candidate_site_for_cookies = net::SiteForCookies(top_frame_site);
}
+ BRAVE_RENDER_FRAME_HOST_IMPL_COMPUTE_ISOLATION_INFO_INTERNAL
std::optional<base::UnguessableToken> nonce =
ComputeNonce(is_credentialless, fenced_frame_nonce_for_navigation);
return net::IsolationInfo::Create(
@@ -5449,6 +5450,7 @@ net::IsolationInfo RenderFrameHostImpl::ComputeIsolationInfoInternal(
std::optional<base::UnguessableToken> RenderFrameHostImpl::ComputeNonce(
bool is_credentialless,
std::optional<base::UnguessableToken> fenced_frame_nonce_for_navigation) {
+ BRAVE_RENDER_FRAME_HOST_IMPL_COMPUTE_NONCE
// If it's a credentialless frame tree, use its nonce even if it's within a
// fenced frame tree to maintain the guarantee that a credentialless frame
// tree has a unique nonce.
@@ -10038,6 +10040,7 @@ void RenderFrameHostImpl::CreateNewWindow(
dom_storage_context, params->session_storage_namespace_id);
}
+ BRAVE_RENDER_FRAME_HOST_IMPL_CREATE_NEW_WINDOW
if (IsCredentialless() || IsNestedWithinFencedFrame() ||
CoopSuppressOpener(/*opener=*/this)) {
params->opener_suppressed = true;