Bug 977016 - PlacesUtils.jsm should use Cu.cloneInto() rather than JSON.stringify/parse r=mak

This commit is contained in:
Tim Taubert 2014-02-26 11:59:37 +01:00
parent ceb73476f1
commit 11218793e0

View File

@ -1953,7 +1953,7 @@ TransactionItemCache.prototype = {
get index()
this._index != null ? this._index : PlacesUtils.bookmarks.DEFAULT_INDEX,
set annotations(v)
this._annotations = Array.isArray(v) ? JSON.parse(JSON.stringify(v)) : null,
this._annotations = Array.isArray(v) ? Cu.cloneInto(v, {}) : null,
get annotations()
this._annotations || null,
set tags(v)