diff --git a/docshell/base/nsDocShellLoadState.cpp b/docshell/base/nsDocShellLoadState.cpp index 8b0933a0da32..2d54ab4c82cd 100644 --- a/docshell/base/nsDocShellLoadState.cpp +++ b/docshell/base/nsDocShellLoadState.cpp @@ -71,6 +71,7 @@ nsDocShellLoadState::nsDocShellLoadState( mReferrerInfo = aLoadState.ReferrerInfo(); mURI = aLoadState.URI(); mOriginalURI = aLoadState.OriginalURI(); + mSourceBrowsingContext = aLoadState.SourceBrowsingContext(); mBaseURI = aLoadState.BaseURI(); mTriggeringPrincipal = aLoadState.TriggeringPrincipal(); mPrincipalToInherit = aLoadState.PrincipalToInherit(); @@ -667,6 +668,7 @@ DocShellLoadStateInit nsDocShellLoadState::Serialize() { mIsFromProcessingFrameAttributes; loadState.URI() = mURI; loadState.OriginalURI() = mOriginalURI; + loadState.SourceBrowsingContext() = mSourceBrowsingContext; loadState.BaseURI() = mBaseURI; loadState.TriggeringPrincipal() = mTriggeringPrincipal; loadState.PrincipalToInherit() = mPrincipalToInherit; diff --git a/dom/ipc/DOMTypes.ipdlh b/dom/ipc/DOMTypes.ipdlh index c01364533274..6780a87c8318 100644 --- a/dom/ipc/DOMTypes.ipdlh +++ b/dom/ipc/DOMTypes.ipdlh @@ -266,6 +266,8 @@ struct DocShellLoadStateInit // encounters a server side redirect. nsIContentSecurityPolicy Csp; + MaybeDiscardedBrowsingContext SourceBrowsingContext; + nsCString? OriginalURIString; int32_t? CancelContentJSEpoch;