Bug 1622926 - Don't restore scrolldata and form data when switching processes. r=droeh

That data is not the right one anyway, since it comes from the previous page
rather than the current one.

Note: this is also broken on desktop too. It will be fixed once we move to main
process history (hopefully?).

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Agi Sferro 2020-03-19 00:57:10 +00:00
Родитель f3854a78ed
Коммит a4ed37be73
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -165,10 +165,12 @@ var ModuleManager = {
// to collect it and restore it in the other process when switching.
// TODO: This should go away when we migrate the history to the main
// process Bug 1507287.
const sessionState = await this.getActor("GeckoViewContent").sendQuery(
const { history } = await this.getActor("GeckoViewContent").sendQuery(
"CollectSessionState"
);
const { history } = sessionState;
// Ignore scroll and form data since we're navigating away from this page
// anyway
const sessionState = { history };
// If the navigation is from history we don't need to load the page again
// so we ignore loadOptions