diff --git a/dom/base/nsGlobalWindowInner.cpp b/dom/base/nsGlobalWindowInner.cpp index 8de568094195..7e3532bcb3ab 100644 --- a/dom/base/nsGlobalWindowInner.cpp +++ b/dom/base/nsGlobalWindowInner.cpp @@ -5479,6 +5479,10 @@ void nsGlobalWindowInner::SetCsp(nsIContentSecurityPolicy* aCsp) { mClientSource->SetCsp(aCsp); // Also cache the CSP within the document mDoc->SetCsp(aCsp); + + if (mWindowGlobalChild) { + mWindowGlobalChild->SendSetClientInfo(mClientSource->Info().ToIPC()); + } } void nsGlobalWindowInner::SetPreloadCsp(nsIContentSecurityPolicy* aPreloadCsp) { @@ -5488,6 +5492,10 @@ void nsGlobalWindowInner::SetPreloadCsp(nsIContentSecurityPolicy* aPreloadCsp) { mClientSource->SetPreloadCsp(aPreloadCsp); // Also cache the preload CSP within the document mDoc->SetPreloadCsp(aPreloadCsp); + + if (mWindowGlobalChild) { + mWindowGlobalChild->SendSetClientInfo(mClientSource->Info().ToIPC()); + } } nsIContentSecurityPolicy* nsGlobalWindowInner::GetCsp() {