зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1390359 - Replace faded out (i) icon with a search icon when the location bar is empty or modified. r=adw
MozReview-Commit-ID: 8Q6MeB1XuyD --HG-- extra : rebase_source : 5152c5077e951afad4932b938e4022c3704d2a05
This commit is contained in:
Родитель
e83b03bdda
Коммит
10caf949d2
|
@ -4,7 +4,7 @@
|
|||
|
||||
function confirmDefaults() {
|
||||
let identityIconURL = getComputedStyle(document.getElementById("identity-icon")).listStyleImage;
|
||||
is(identityIconURL, "url(\"chrome://browser/skin/identity-icon.svg\")", "Identity icon should be the default identity icon");
|
||||
is(identityIconURL, "url(\"chrome://global/skin/icons/autocomplete-search.svg\")", "Identity icon should be the search icon");
|
||||
|
||||
let connectionIconURL = getComputedStyle(document.getElementById("connection-icon")).listStyleImage;
|
||||
is(connectionIconURL, "none", "Connection icon should not be displayed");
|
||||
|
|
|
@ -98,15 +98,14 @@
|
|||
#identity-box.grantedPermissions > #identity-icon {
|
||||
list-style-image: url(chrome://browser/skin/identity-icon-notice.svg);
|
||||
}
|
||||
|
||||
#urlbar[pageproxystate="valid"] > #identity-box.chromeUI > #identity-icon {
|
||||
list-style-image: url(chrome://branding/content/identity-icons-brand.svg);
|
||||
}
|
||||
#urlbar[pageproxystate="invalid"] > #identity-box > #identity-icon {
|
||||
fill-opacity: .3;
|
||||
}
|
||||
|
||||
#urlbar[actiontype="searchengine"] > #identity-box > #identity-icon {
|
||||
#urlbar[pageproxystate="invalid"] > #identity-box > #identity-icon {
|
||||
list-style-image: url(chrome://global/skin/icons/autocomplete-search.svg);
|
||||
fill-opacity: .4;
|
||||
}
|
||||
|
||||
#urlbar[actiontype="extension"] > #identity-box > #identity-icon {
|
||||
|
|
|
@ -21,7 +21,7 @@ class TestChromeElementCSS(MarionetteTestCase):
|
|||
with self.marionette.using_context("chrome"):
|
||||
identity_icon = self.marionette.find_element(By.ID, "identity-icon")
|
||||
favicon_image = identity_icon.value_of_css_property("list-style-image")
|
||||
self.assertIn("identity-icon.svg", favicon_image)
|
||||
self.assertIn("chrome://", favicon_image)
|
||||
identity_box = self.marionette.find_element(By.ID, "identity-box")
|
||||
expected_bg_colour = self.get_element_computed_style(
|
||||
identity_box, "backgroundColor")
|
||||
|
|
Загрузка…
Ссылка в новой задаче