mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
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:
parent
88855a7ee5
commit
21af578b73
@ -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.
|
||||
|
@ -1704,7 +1704,6 @@ class UrlbarInput {
|
||||
|
||||
_on_TabSelect(event) {
|
||||
this._resetSearchState();
|
||||
this.controller.viewContextChanged();
|
||||
}
|
||||
|
||||
_on_keydown(event) {
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user