Bug 804469 - [Marketplace] Installed app can't be removed immediately if it has been executed (need reboot) [r=vingtetun]

This commit is contained in:
Fabrice Desré 2012-11-08 16:53:31 -08:00
parent 0d404de846
commit 678bbbc8d3

View File

@ -566,8 +566,8 @@ this.DOMApplicationRegistry = {
removeMessageListener: function(aMsgNames, aMm) {
if (aMsgNames.length === 1 &&
aMsgNames[0] === "Webapps:Internal:AllMessages") {
for (let i = this.children.length - 1; i >= 0; i -= 1) {
let msg = this.children[i];
for (let msgName in this.children) {
let msg = this.children[msgName];
for (let mmI = msg.length - 1; mmI >= 0; mmI -= 1) {
let mmRef = msg[mmI];
@ -577,7 +577,7 @@ this.DOMApplicationRegistry = {
}
if (msg.length === 0) {
this.children.splice(i, 1);
delete this.children[msgName];
}
}
return;