зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f3854a78ed
Коммит
a4ed37be73
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче