mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 828508 - use larger favicons in hidpi mode if available. r=fryn
This commit is contained in:
parent
46f49a3865
commit
4ee6e3badf
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user