bug 780686 - DOMApplicationRegistry._cloneAppObject doesn't clone the receipts array; r=fabrice

This commit is contained in:
Myk Melez 2012-08-07 13:51:44 -07:00
parent 8c71357cbc
commit b723293753

View File

@ -274,7 +274,7 @@ let DOMApplicationRegistry = {
let clone = {
installOrigin: aApp.installOrigin,
origin: aApp.origin,
receipts: aApp.receipts,
receipts: aApp.receipts ? JSON.parse(JSON.stringify(aApp.receipts)) : null,
installTime: aApp.installTime,
manifestURL: aApp.manifestURL,
progress: aApp.progress || 0.0,