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 16:15:47 +00:00
parent 804b5c8622
commit aee6f990e5
7 changed files with 27 additions and 13 deletions

View File

@@ -2742,15 +2742,15 @@ void BrowsingContext::RemoveFromSessionHistory() {
}
}
void BrowsingContext::HistoryGo(int32_t aIndex,
void BrowsingContext::HistoryGo(int32_t aOffset,
std::function<void(int32_t&&)>&& aResolver) {
if (XRE_IsContentProcess()) {
ContentChild::GetSingleton()->SendHistoryGo(
this, aIndex, std::move(aResolver),
this, aOffset, std::move(aResolver),
[](mozilla::ipc::
ResponseRejectReason) { /* FIXME Is ignoring this fine? */ });
} else {
Canonical()->HistoryGo(aIndex, std::move(aResolver));
Canonical()->HistoryGo(aOffset, std::move(aResolver));
}
}