29 lines
1.6 KiB
Diff
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 735febe0f136d4a747d8374ccbc5477645d22e40..5b384bcb00a0412fe0bf6a098f2802253ddc6f22 100644
|
|
--- a/content/browser/renderer_host/render_frame_host_impl.cc
|
|
+++ b/content/browser/renderer_host/render_frame_host_impl.cc
|
|
@@ -5536,6 +5536,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(
|
|
@@ -5547,6 +5548,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.
|
|
@@ -10315,6 +10317,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;
|