Bug 1570688 - Remove UrlbarController::viewContextChanged. r=mak

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dão Gottwald 2019-08-02 08:36:29 +00:00
parent 88855a7ee5
commit 21af578b73
3 changed files with 0 additions and 14 deletions

View File

@ -217,16 +217,6 @@ class UrlbarController {
this._listeners.delete(listener);
}
/**
* When the containing context changes (for example when switching tabs),
* clear any caches that connects consecutive searches in the same context.
* For example it can be used to clear information used to improve autofill
* or save resourced on repeated searches.
*/
viewContextChanged() {
this.cancelQuery();
}
/**
* Checks whether a keyboard event that would normally open the view should
* instead be handled natively by the input field.

View File

@ -1704,7 +1704,6 @@ class UrlbarInput {
_on_TabSelect(event) {
this._resetSearchState();
this.controller.viewContextChanged();
}
_on_keydown(event) {

View File

@ -246,9 +246,6 @@ View (e.g. showing/hiding a panel). It is also responsible for reporting Telemet
// Used by the View to listen for results.
addQueryListener(listener);
removeQueryListener(listener);
// Used to indicate the View context changed, so that cached information
// about the latest search is no more relevant and can be dropped.
viewContextChanged();
}