Bug 1626404: Part 2b - Serialize source BC with LoadState. r=nika CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com/D69419

--HG--
extra : source : 2ffdab0072e7dbc56d232537aafbd2c1aa80ef14
extra : intermediate-source : ec63b18da4b9c1eb280f77a800e0e987aa3f20fa
This commit is contained in:
Kris Maglione 2020-04-04 02:42:42 +00:00
Родитель 9742588080
Коммит ca908cb413
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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;

Просмотреть файл

@ -266,6 +266,8 @@ struct DocShellLoadStateInit
// encounters a server side redirect.
nsIContentSecurityPolicy Csp;
MaybeDiscardedBrowsingContext SourceBrowsingContext;
nsCString? OriginalURIString;
int32_t? CancelContentJSEpoch;