Bug 842780 - about:newaddon doesn't restrict size of the add-on's icon. r=Unfocused

This commit is contained in:
Sachin Hosmani 2013-04-23 12:04:30 +05:30
parent 84acbacd79
commit 46f9674a78
4 changed files with 8 additions and 2 deletions

View File

@ -51,7 +51,7 @@ function initialize() {
gAddon = aAddon;
document.getElementById("addon-info").setAttribute("type", aAddon.type);
let icon = document.getElementById("icon");
if (aAddon.icon64URL)
icon.src = aAddon.icon64URL;
@ -60,7 +60,7 @@ function initialize() {
let name = bundle.formatStringFromName("name", [aAddon.name, aAddon.version],
2);
document.getElementById("name").value = name
document.getElementById("name").value = name;
if (aAddon.creator) {
let creator = bundle.formatStringFromName("author", [aAddon.creator], 1);

View File

@ -36,6 +36,8 @@
#icon {
-moz-margin-end: 10px;
max-width: 64px;
max-height: 64px;
list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
}

View File

@ -38,6 +38,8 @@
#icon {
-moz-margin-end: 10px;
max-width: 64px;
max-height: 64px;
list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
}

View File

@ -36,6 +36,8 @@
#icon {
-moz-margin-end: 10px;
max-width: 64px;
max-height: 64px;
list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
}