Skip to content

Commit

Permalink
Merge autoland to m-c a=merge
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: Fjt5XIDd0p6
  • Loading branch information
KWierso committed Jun 3, 2017
2 parents 40dd618 + da4118f commit bd79579
Show file tree
Hide file tree
Showing 137 changed files with 2,508 additions and 1,450 deletions.
3 changes: 2 additions & 1 deletion browser/base/content/browser.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ panelview:not([mainview]):not([current]) {
visibility: collapse;
}

panelview[mainview] > .panel-header {
panelview[mainview] > .panel-header,
panelview:not([title]) > .panel-header {
display: none;
}

Expand Down
21 changes: 13 additions & 8 deletions browser/components/preferences/in-content-new/findInPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,7 @@ var gSearchResultsPane = {
searchFunction(event) {
let query = event.target.value.trim().toLowerCase();
this.findSelection.removeAllRanges();

// Remove all search tooltips that were created
let searchTooltips = Array.from(document.querySelectorAll(".search-tooltip"));
for (let searchTooltip of searchTooltips) {
searchTooltip.parentElement.classList.remove("search-tooltip-parent");
searchTooltip.remove();
}
this.listSearchTooltips = [];
this.removeAllSearchTooltips();

let srHeader = document.getElementById("header-searchResults");

Expand Down Expand Up @@ -370,5 +363,17 @@ var gSearchResultsPane = {
offSet += relativeOffset > 0 ? relativeOffset : 0;

searchTooltip.style.setProperty("left", `${offSet}px`);
},

/**
* Remove all search tooltips that were created.
*/
removeAllSearchTooltips() {
let searchTooltips = Array.from(document.querySelectorAll(".search-tooltip"));
for (let searchTooltip of searchTooltips) {
searchTooltip.parentElement.classList.remove("search-tooltip-parent");
searchTooltip.remove();
}
this.listSearchTooltips = [];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ function gotoPref(aCategory) {
gSearchResultsPane.searchInput.value = "";
gSearchResultsPane.searchResultsCategory.hidden = true;
gSearchResultsPane.findSelection.removeAllRanges();
gSearchResultsPane.removeAllSearchTooltips();
}

// Updating the hash (below) or changing the selected category
Expand Down
4 changes: 3 additions & 1 deletion browser/themes/shared/autocomplete.inc.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@
#PopupAutoComplete > richlistbox > richlistitem[originaltype="login"] > .ac-site-icon {
display: initial;
list-style-image: url(chrome://browser/skin/notification-icons.svg#login);
-moz-context-properties: fill;
fill: GrayText;
}

#PopupAutoComplete > richlistbox > richlistitem[originaltype="login"] > .ac-site-icon[selected] {
list-style-image: url(chrome://browser/skin/notification-icons.svg#login-highlighted);
fill: HighlightText;
}


Expand Down
2 changes: 2 additions & 0 deletions browser/themes/shared/compacttheme.inc.css
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ toolbar:-moz-lwtheme-darktext {
#identity-icon:-moz-lwtheme-brighttext,
#tracking-protection-icon:-moz-lwtheme-brighttext,
#connection-icon:-moz-lwtheme-brighttext,
.notification-anchor-icon:-moz-lwtheme-brighttext,
#blocked-permissions-container > .blocked-permission-icon:-moz-lwtheme-brighttext,
#extension-icon:-moz-lwtheme-brighttext {
fill: rgba(255,255,255,.7);
}
Expand Down
2 changes: 2 additions & 0 deletions browser/themes/shared/controlcenter/panel.inc.css
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ description#identity-popup-content-verifier,
}

.identity-popup-permission-icon.in-use {
-moz-context-properties: fill;
fill: rgb(224, 41, 29);
animation: 1.5s ease in-use-blink infinite;
}

Expand Down
10 changes: 8 additions & 2 deletions browser/themes/shared/identity-block/identity-block.inc.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,29 @@
#identity-icon,
#tracking-protection-icon,
#connection-icon,
.notification-anchor-icon,
#blocked-permissions-container > .blocked-permission-icon,
#extension-icon {
width: 16px;
height: 16px;
margin-inline-start: 2px;
-moz-context-properties: fill;
fill: GrayText;
}

#identity-icon:-moz-lwtheme,
#tracking-protection-icon:-moz-lwtheme,
#connection-icon:-moz-lwtheme,
.notification-anchor-icon:-moz-lwtheme,
#blocked-permissions-container > .blocked-permission-icon:-moz-lwtheme,
#extension-icon:-moz-lwtheme {
fill: rgba(0,0,0,.6);
}

/* MAIN IDENTITY ICON */

#identity-icon {
margin-inline-start: 0;
list-style-image: url(chrome://browser/skin/identity-icon.svg);
}

Expand Down Expand Up @@ -116,6 +122,8 @@
height: 16px;
margin-inline-start: -16px;
position: relative;
-moz-context-properties: fill;
fill: rgb(224, 41, 29);
display: none;
}

Expand Down Expand Up @@ -155,7 +163,6 @@

#tracking-protection-icon {
list-style-image: url(chrome://browser/skin/tracking-protection-16.svg#enabled);
margin-inline-start: 2px;
margin-inline-end: 0;
}

Expand Down Expand Up @@ -184,7 +191,6 @@

#connection-icon,
#extension-icon {
margin-inline-start: 2px;
visibility: collapse;
}

Expand Down
2 changes: 1 addition & 1 deletion browser/themes/shared/jar.inc.mn
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
skin/classic/browser/info.svg (../shared/info.svg)
* skin/classic/browser/menuPanel.svg (../shared/menuPanel.svg)
* skin/classic/browser/menuPanel-small.svg (../shared/menuPanel-small.svg)
* skin/classic/browser/notification-icons.svg (../shared/notification-icons.svg)
skin/classic/browser/notification-icons.svg (../shared/notification-icons.svg)
skin/classic/browser/tracking-protection-16.svg (../shared/identity-block/tracking-protection-16.svg)
skin/classic/browser/newtab/close.png (../shared/newtab/close.png)
skin/classic/browser/newtab/controls.svg (../shared/newtab/controls.svg)
Expand Down
20 changes: 7 additions & 13 deletions browser/themes/shared/notification-icons.inc.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,26 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
%endif

.popup-notification-icon,
.identity-popup-permission-icon {
-moz-context-properties: fill;
fill: GrayText;
}

#notification-popup-box {
padding: 5px 0px;
margin: -5px 0px;
margin-inline-end: -5px;
padding-inline-end: 5px;
}

.notification-anchor-icon,
#blocked-permissions-container > .blocked-permission-icon {
width: 16px;
height: 16px;
margin-inline-start: 2px;
}

/* This class can be used alone or in combination with the class defining the
type of icon displayed. This rule must be defined before the others in order
for its list-style-image to be overridden. */
.notification-anchor-icon {
list-style-image: url(chrome://browser/skin/notification-icons.svg#default-info);
}

.notification-anchor-icon:not(.plugin-blocked):-moz-lwtheme,
#blocked-permissions-container > .blocked-permission-icon:-moz-lwtheme {
filter: url(chrome://global/skin/filters.svg#fill);
fill: currentColor;
}

/* INDIVIDUAL NOTIFICATIONS */

.focus-tab-by-prompt-icon {
Expand Down Expand Up @@ -252,6 +245,7 @@ html|*#webRTC-previewVideo {

.plugin-icon.plugin-blocked {
list-style-image: url(chrome://browser/skin/notification-icons.svg#plugin-blocked);
fill: #d92215 !important;
}

#notification-popup-box[hidden] {
Expand Down
100 changes: 35 additions & 65 deletions browser/themes/shared/notification-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions browser/themes/shared/tabs.inc.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@
/* 16px of the icon + 6px of margin-inline-end of .tab-icon-image */
margin-inline-start: -22px;
position: relative;
-moz-context-properties: fill;
fill: rgb(224, 41, 29);
}

.tab-sharing-icon-overlay[sharing="camera"] {
Expand Down
6 changes: 6 additions & 0 deletions browser/themes/shared/webRTC-indicator.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ window {
border-style: none;
}

#audioVideoButton,
#screenShareButton {
-moz-context-properties: fill;
fill: white;
}

#firefoxButton {
background-image: url("chrome://branding/content/icon48.png");
background-repeat: no-repeat;
Expand Down
Loading

0 comments on commit bd79579

Please sign in to comment.