Bug 1668577 - Make child process to send offset to parent process, not index, r=peterv

Differential Revision: https://phabricator.services.mozilla.com/D92074
This commit is contained in:
Olli Pettay
2020-10-02 12:05:57 +00:00
parent 5429ad105e
commit 83ddcf9adc
7 changed files with 27 additions and 13 deletions

View File

@@ -3362,7 +3362,7 @@ nsDocShell::GotoIndex(int32_t aIndex) {
NS_ENSURE_TRUE(rootSH, NS_ERROR_FAILURE);
ErrorResult rv;
rootSH->GotoIndex(aIndex, rv);
rootSH->GotoIndex(aIndex, aIndex - rootSH->Index(), rv);
return rv.StealNSResult();
}