bug 828508 - use larger favicons in hidpi mode if available. r=fryn

This commit is contained in:
Jonathan Kew 2013-03-23 17:03:01 -07:00
parent 46f49a3865
commit 4ee6e3badf

View File

@ -682,7 +682,13 @@
<body>
<![CDATA[
var browser = this.getBrowserForTab(aTab);
browser.mIconURL = aURI instanceof Ci.nsIURI ? aURI.spec : aURI;
var iconUrl = aURI instanceof Ci.nsIURI ? aURI.spec : aURI;
if (iconUrl) {
var separator = iconUrl.indexOf("#") > -1 ? "&" : "#";
var size = Math.round(16 * window.devicePixelRatio);
iconUrl += separator + "-moz-resolution=" + size + "," + size;
}
browser.mIconURL = iconUrl;
if (aURI && this.mFaviconService) {
if (!(aURI instanceof Ci.nsIURI))