зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1121802 - Only add #-moz-resolution to favicon URIs that end in ".ico". r=Unfocused
This commit is contained in:
Родитель
8343f75c28
Коммит
71e8c48f72
|
@ -1490,6 +1490,9 @@ this.PlacesUtils = {
|
|||
*/
|
||||
getImageURLForResolution:
|
||||
function PU_getImageURLForResolution(aWindow, aURL, aWidth = 16, aHeight = 16) {
|
||||
if (!aURL.endsWith('.ico') && !aURL.endsWith('.ICO')) {
|
||||
return aURL;
|
||||
}
|
||||
let width = Math.round(aWidth * aWindow.devicePixelRatio);
|
||||
let height = Math.round(aHeight * aWindow.devicePixelRatio);
|
||||
return aURL + (aURL.contains("#") ? "&" : "#") +
|
||||
|
|
|
@ -1106,6 +1106,9 @@ extends="chrome://global/content/bindings/popup.xml#popup">
|
|||
<parameter name="aHeight"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
if (!aURL.endsWith('.ico') && !aURL.endsWith('.ICO')) {
|
||||
return aURL;
|
||||
}
|
||||
let width = Math.round(aWidth * aWin.devicePixelRatio);
|
||||
let height = Math.round(aHeight * aWin.devicePixelRatio);
|
||||
return aURL + (aURL.contains("#") ? "&" : "#") +
|
||||
|
|
Загрузка…
Ссылка в новой задаче