Bug 1373672 - Part 3: Expose childOffset from nsIDocShell to use in nsSessionStoreUtils, r=ttaubert, r=smaug

The reasoning behind this is that with this change, removing a non-dynamic
docshell from the document dynamically shouldn't affect the indexes which we use
for both recording and restoring data in child docshells.

MozReview-Commit-ID: JIK8GBSWDEF
This commit is contained in:
Michael Layzell
2017-08-01 11:22:53 +02:00
parent 44d2ed5cd5
commit e8382ff99f
4 changed files with 26 additions and 4 deletions

View File

@@ -4089,6 +4089,13 @@ nsDocShell::SetChildOffset(int32_t aChildOffset)
return NS_OK;
}
NS_IMETHODIMP
nsDocShell::GetChildOffset(int32_t* aChildOffset)
{
*aChildOffset = mChildOffset;
return NS_OK;
}
NS_IMETHODIMP
nsDocShell::GetHistoryID(nsID** aID)
{