Loading
Bug 1747575 - Fix a bug that prevents search mode from being exited in new...
Bug 1747575 - Fix a bug that prevents search mode from being exited in new windows. r=harry, a=RyanVM This is a regression from bug 1723158, specifically [this change](https://hg.mozilla.org/mozilla-central/rev/904db8e18e53#l4.12). `this._queryContext` is undefined in the view in new windows. If you press the key shortcut to enter search mode immediately in a new window, search mode is entered without running a query. Then if you hit Escape or Backspace, we hit the `allowEmptySelection` getter and throw an error because `this._queryContext` is undefined but we're trying to destructure it. This bug does not happen if you first focus the urlbar and then enter search mode because focusing the urlbar causes the top-sites query to run. Differential Revision: https://phabricator.services.mozilla.com/D135583