update library for https://bugzilla.mozilla.org/show_bug.cgi?id=648668 (support blank favicon on Firefox 8 or later)

This commit is contained in:
SHIMODA Hiroshi 2011-08-24 10:27:12 +09:00
parent 68e156bd12
commit 2c35aa8ce0
2 changed files with 19 additions and 13 deletions

View File

@ -14,60 +14,64 @@
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
:root[tabFx2Compatible="14"] :root[tabFx2Compatible="15"]
.tabbrowser-tab { .tabbrowser-tab {
-moz-binding: url(tabFx2Compatible.xml#tabbrowser-tab-3) !important; -moz-binding: url(tabFx2Compatible.xml#tabbrowser-tab-3) !important;
} }
:root[tabFx2Compatible="14"][tabFx2Compatible-flags~="separate-tabContextMenu"] :root[tabFx2Compatible="15"][tabFx2Compatible-flags~="separate-tabContextMenu"]
.tabbrowser-tab { .tabbrowser-tab {
-moz-binding: url(tabFx2Compatible.xml#tabbrowser-tab-4) !important; -moz-binding: url(tabFx2Compatible.xml#tabbrowser-tab-4) !important;
} }
:root[tabFx2Compatible="14"]:not([tabFx2Compatible-flags~="png-throbber"])[tabFx2Compatible-flags~="fx3"] :root[tabFx2Compatible="15"]:not([tabFx2Compatible-flags~="png-throbber"])[tabFx2Compatible-flags~="fx3"]
.tab-icon-image[busy] { .tab-icon-image[busy] {
list-style-image: url("chrome://global/skin/throbber/Throbber-small.gif") !important; list-style-image: url("chrome://global/skin/throbber/Throbber-small.gif") !important;
opacity: 0.6; opacity: 0.6;
} }
:root[tabFx2Compatible="14"][tabFx2Compatible-flags~="png-throbber"][tabFx2Compatible-flags~="fx3"] :root[tabFx2Compatible="15"][tabFx2Compatible-flags~="png-throbber"][tabFx2Compatible-flags~="fx3"]
.tab-icon-image[busy] { .tab-icon-image[busy] {
list-style-image: url("chrome://global/skin/icons/loading_16.png") !important; list-style-image: url("chrome://global/skin/icons/loading_16.png") !important;
} }
:root[tabFx2Compatible="14"][tabFx2Compatible-flags~="mac"][tabFx2Compatible-flags~="png-throbber"] :root[tabFx2Compatible="15"][tabFx2Compatible-flags~="mac"][tabFx2Compatible-flags~="png-throbber"]
.tab-icon-image { .tab-icon-image {
list-style-image: url("chrome://global/skin/tree/item.png"); list-style-image: url("chrome://global/skin/tree/item.png");
} }
:root[tabFx2Compatible="15"][tabFx2Compatible-flags~="blank-favicon"]
.tab-icon-image {
list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
}
:root[tabFx2Compatible="14"][tabFx2Compatible-flags~="mac"] :root[tabFx2Compatible="15"][tabFx2Compatible-flags~="mac"]
.tabbrowser-tab:not(:hover) .tab-icon-image:not([selected="true"]) { .tabbrowser-tab:not(:hover) .tab-icon-image:not([selected="true"]) {
opacity: 0.6; opacity: 0.6;
} }
:root[tabFx2Compatible="14"] :root[tabFx2Compatible="15"]
.tabbrowser-tab:focus > .tab-image-middle { .tabbrowser-tab:focus > .tab-image-middle {
outline: 1px dotted; outline: 1px dotted;
} }
/* we must split declarations for old Gecko */ /* we must split declarations for old Gecko */
:root[tabFx2Compatible="14"] :root[tabFx2Compatible="15"]
.tabbrowser-tab:-moz-focusring > .tab-stack { .tabbrowser-tab:-moz-focusring > .tab-stack {
outline: 1px dotted; outline: 1px dotted;
} }
:root[tabFx2Compatible="14"] :root[tabFx2Compatible="15"]
.tab-image-left[pinned="true"], .tab-image-left[pinned="true"],
:root[tabFx2Compatible="14"] :root[tabFx2Compatible="15"]
.tab-image-right[pinned="true"] { .tab-image-right[pinned="true"] {
display: none !important; display: none !important;
} }
/* Tab Utilities */ /* Tab Utilities */
:root[tabFx2Compatible="14"] :root[tabFx2Compatible="15"]
.tabbrowser-tabs[highlightLocked][highlightSelected][highlightUnread] .tabbrowser-tabs[highlightLocked][highlightSelected][highlightUnread]
> .tabbrowser-tab .tab-icon > .tab-icon-image ~ *, > .tabbrowser-tab .tab-icon > .tab-icon-image ~ *,
:root[tabFx2Compatible="14"] :root[tabFx2Compatible="15"]
.tabbrowser-tabs[highlightlocked][highlightselected][highlightunread] .tabbrowser-tabs[highlightlocked][highlightselected][highlightunread]
> .tabbrowser-tab .tab-icon > .tab-icon-image ~ * { > .tabbrowser-tab .tab-icon > .tab-icon-image ~ * {
background: none !important; background: none !important;

View File

@ -19,7 +19,7 @@
window.addEventListener('DOMContentLoaded', function() { window.addEventListener('DOMContentLoaded', function() {
window.removeEventListener('DOMContentLoaded', arguments.callee, true); window.removeEventListener('DOMContentLoaded', arguments.callee, true);
const currentRevision = 14; const currentRevision = 15;
var b = document.getElementById('content'); var b = document.getElementById('content');
if (!b || b.localName != 'tabbrowser') return; if (!b || b.localName != 'tabbrowser') return;
@ -79,6 +79,8 @@ window.addEventListener('DOMContentLoaded', function() {
flags.push('png-throbber'); flags.push('png-throbber');
if (Comparator.compare(XULAppInfo.version, '4.0b1') >= 0) if (Comparator.compare(XULAppInfo.version, '4.0b1') >= 0)
flags.push('separate-tabContextMenu'); flags.push('separate-tabContextMenu');
if (Comparator.compare(XULAppInfo.version, '7.0') > 0)
flags.push('blank-favicon');
else else
flags.push('fx3'); flags.push('fx3');
root.setAttribute('tabFx2Compatible-flags', flags.join(' ')); root.setAttribute('tabFx2Compatible-flags', flags.join(' '));