зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1512747 - Add the tab icon to remote tab matches. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D14072 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
aa6f44ee39
Коммит
c2abbf2d3a
|
@ -198,8 +198,8 @@ class UrlbarView {
|
|||
item.className = "urlbarView-row";
|
||||
item.setAttribute("resultIndex", resultIndex);
|
||||
|
||||
if (result.type == UrlbarUtils.MATCH_TYPE.TAB_SWITCH) {
|
||||
item.setAttribute("type", "switchtab");
|
||||
if (result.source == UrlbarUtils.MATCH_SOURCE.TABS) {
|
||||
item.setAttribute("type", "tab");
|
||||
} else if (result.source == UrlbarUtils.MATCH_SOURCE.BOOKMARKS) {
|
||||
item.setAttribute("type", "bookmark");
|
||||
}
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
background-image: url(chrome://browser/skin/bookmark.svg);
|
||||
}
|
||||
|
||||
.urlbarView-row[type=switchtab] > .urlbarView-row-inner > .urlbarView-type-icon {
|
||||
.urlbarView-row[type=tab] > .urlbarView-row-inner > .urlbarView-type-icon {
|
||||
background-image: url(chrome://browser/skin/tab.svg);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче