зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1637043 - Stop highlighting the heuristic search result. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D74739
This commit is contained in:
Родитель
4c6a3862df
Коммит
c30d408639
|
@ -136,7 +136,7 @@ class ProviderPrivateSearch extends UrlbarProvider {
|
|||
UrlbarUtils.RESULT_SOURCE.SEARCH,
|
||||
...UrlbarResult.payloadAndSimpleHighlights(queryContext.tokens, {
|
||||
engine: [engine.name, UrlbarUtils.HIGHLIGHT.TYPED],
|
||||
query: [searchString, UrlbarUtils.HIGHLIGHT.TYPED],
|
||||
query: [searchString, UrlbarUtils.HIGHLIGHT.NONE],
|
||||
icon: [engine.iconURI ? engine.iconURI.spec : null],
|
||||
inPrivateWindow: true,
|
||||
isPrivateEngine,
|
||||
|
|
|
@ -357,7 +357,7 @@ class ProviderSearchSuggestions extends UrlbarProvider {
|
|||
engine: [engine.name, UrlbarUtils.HIGHLIGHT.TYPED],
|
||||
suggestion: [result.suggestion, UrlbarUtils.HIGHLIGHT.SUGGESTED],
|
||||
keyword: [alias ? alias : undefined, UrlbarUtils.HIGHLIGHT.TYPED],
|
||||
query: [searchString.trim(), UrlbarUtils.HIGHLIGHT.TYPED],
|
||||
query: [searchString.trim(), UrlbarUtils.HIGHLIGHT.NONE],
|
||||
isSearchHistory: false,
|
||||
icon: [
|
||||
engine.iconURI && !result.suggestion ? engine.iconURI.spec : "",
|
||||
|
|
|
@ -211,7 +211,7 @@ function makeUrlbarResult(tokens, info) {
|
|||
keyword: [action.params.alias, UrlbarUtils.HIGHLIGHT.TYPED],
|
||||
query: [
|
||||
action.params.searchQuery.trim(),
|
||||
UrlbarUtils.HIGHLIGHT.TYPED,
|
||||
UrlbarUtils.HIGHLIGHT.NONE,
|
||||
],
|
||||
isSearchHistory: !!action.params.isSearchHistory,
|
||||
icon: [info.icon],
|
||||
|
|
|
@ -274,15 +274,12 @@ notification[value="translation"] menulist::part(dropmarker) {
|
|||
--urlbar-popup-action-color: -moz-nativehyperlinktext;
|
||||
}
|
||||
|
||||
.urlbarView {
|
||||
#urlbar,
|
||||
#searchbar {
|
||||
font-size: 1.05em;
|
||||
}
|
||||
|
||||
@supports -moz-bool-pref("browser.urlbar.update2.expandTextOnFocus") {
|
||||
.urlbarView {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
#urlbar[breakout-extend] {
|
||||
font-size: 1.14em;
|
||||
}
|
||||
|
|
|
@ -280,15 +280,7 @@
|
|||
--panel-disabled-color: #737373;
|
||||
}
|
||||
|
||||
.urlbarView {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@supports -moz-bool-pref("browser.urlbar.update2.expandTextOnFocus") {
|
||||
.urlbarView {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
#urlbar[breakout-extend] {
|
||||
font-size: 1.36em;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче