зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1598285 - Stop ongoing search after reload. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D54180 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
2807676de6
Коммит
2e36f73e67
|
@ -299,4 +299,5 @@ module.exports = {
|
||||||
setTargetSearchResult,
|
setTargetSearchResult,
|
||||||
toggleCaseSensitiveSearch,
|
toggleCaseSensitiveSearch,
|
||||||
clearSearchResultAndCancel,
|
clearSearchResultAndCancel,
|
||||||
|
stopOngoingSearch,
|
||||||
};
|
};
|
||||||
|
|
|
@ -209,12 +209,17 @@ class FirefoxConnector {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resume is done automatically on page reload/navigation.
|
|
||||||
if (this.actions && this.getState) {
|
if (this.actions && this.getState) {
|
||||||
const state = this.getState();
|
const state = this.getState();
|
||||||
|
// Resume is done automatically on page reload/navigation.
|
||||||
if (!state.requests.recording) {
|
if (!state.requests.recording) {
|
||||||
this.actions.toggleRecording();
|
this.actions.toggleRecording();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Stop any ongoing search.
|
||||||
|
if (state.search.ongoingSearch) {
|
||||||
|
this.actions.stopOngoingSearch();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче