Bug 1663984: Show browsing url if the page is not initial page when reverting from search mode. r=mak

Differential Revision: https://phabricator.services.mozilla.com/D91099
This commit is contained in:
Daisuke Akatsuka 2020-09-25 07:11:52 +00:00
parent 07446d052b
commit 2311a08191

View File

@ -608,8 +608,9 @@ class UrlbarInput {
handleRevert() {
this.window.gBrowser.userTypedValue = null;
this.setURI(null, true);
// Nullify search mode before setURI so it won't try to restore it.
this.setSearchMode({});
this.setURI(null, true);
if (this.value && this.focused) {
this.select();
}