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

Commit abc5920

Browse files
committed
[Fix] gBrowser.mFaviconService has been removed since Fx47, it causes problems if you have configured custom toolbar button
fix #89 Bump 2016.06.08 https://hg.mozilla.org/releases/mozilla-release/rev/cbabb4769b50
1 parent 99186a5 commit abc5920

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

chrome/content/tabutils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3099,7 +3099,8 @@ tabutils._tabPrefObserver = {
30993099
if (!button) {
31003100
button = document.getElementById("nav-bar").appendChild(document.createElement("toolbarbutton"));
31013101
button.id = RegExp.$1;
3102-
button.image = gBrowser.mFaviconService.defaultFavicon.spec;
3102+
const FaviconService = Cc["@mozilla.org/browser/favicon-service;1"]. getService(Ci.nsIFaviconService);
3103+
button.image = FaviconService.defaultFavicon.spec;
31033104
button.className = "toolbarbutton-1 chromeclass-toolbar-additional";
31043105
button.collapsed = !TU_getPref("extensions.tabutils.button." + RegExp.$1);
31053106
}

install.rdf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<em:id>tabutilsfixed@addon.cn</em:id>
55
<em:type>2</em:type>
66
<em:name>Tab Utilities Fixed</em:name>
7-
<em:version>1.5.2016.06.05</em:version>
7+
<em:version>1.5.2016.06.08</em:version>
88
<em:creator>YFdyh000</em:creator>
99
<em:contributor>ithinc (Former author)</em:contributor>
1010
<em:contributor>Phil Tsarik</em:contributor>

0 commit comments

Comments
 (0)