Skip to content
This repository has been archived by the owner on Mar 5, 2019. It is now read-only.

Commit

Permalink
Fix the PhantomTabs break on Fx31+
Browse files Browse the repository at this point in the history
  • Loading branch information
yfdyh000 committed Feb 12, 2015
1 parent 09a3006 commit 8d22eac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions chrome/content/tabutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ var tabutils = {
document.documentElement.setAttribute("v14", true);
document.documentElement.setAttribute("v17", true);
document.documentElement.setAttribute("v29", version >= 29.0);
document.documentElement.setAttribute("v31", version >= 31.0);

// Function.prototype.__defineGetter__("stack", function() {
// var stack = [];
Expand Down
1 change: 1 addition & 0 deletions chrome/content/tabutils.xul
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<?xml-stylesheet href="chrome://tabutils/skin/tabutils_fx6.css" type="text/css"?>
<?xml-stylesheet href="chrome://tabutils/skin/tabutils_fx14.css" type="text/css"?>
<?xml-stylesheet href="chrome://tabutils/skin/tabutils_fx29.css" type="text/css"?>
<?xml-stylesheet href="chrome://tabutils/skin/tabutils_fx31.css" type="text/css"?>
<?xml-stylesheet href="chrome://tabutils/skin/tabutils_mac.css" type="text/css"?>
<?xml-stylesheet href="chrome://tabutils/skin/tabutils_linux.css" type="text/css"?>

Expand Down
9 changes: 9 additions & 0 deletions chrome/skin/tabutils_fx31.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* Phantom Tabs */
window[v31="true"] .tabbrowser-tab[pinned] .tab-background:not([fadein]),
window[v31="true"] .tabbrowser-tab[pinned] .tab-close-button:not([fadein]),
window[v31="true"] .tabbrowser-tab[pinned] .tab-label:not([fadein]) {
visibility: visible;
}
window[v31="true"] .tabbrowser-tab[pinned] .tab-icon-image:not([fadein]) {
display: -moz-box;
}

0 comments on commit 8d22eac

Please sign in to comment.