Bug 427746 - Bookmarks toolbar is empty when using 'copy' context menu option (for mak77@supereva.it, r=mano, a=beltzner)

git-svn-id: svn://10.0.0.236/trunk@250319 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dietrich%mozilla.com
2008-04-16 19:33:39 +00:00
parent cc63cc91fb
commit 00a1842734
2 changed files with 6 additions and 3 deletions

View File

@@ -449,7 +449,7 @@
if (this._self._result != val) {
this._self._containerNodesMap = [];
this._self._result = val;
if (val) // this calls _rebuild through invalidateContainer
if (val) // this calls _rebuild through invalidateContainer
val.root.containerOpen = true;
}
return val;

View File

@@ -1306,14 +1306,17 @@ var PlacesUtils = {
// write child nodes
if (!aNode.livemark) {
asContainer(aSourceNode);
aSourceNode.containerOpen = true;
var wasOpen = aSourceNode.containerOpen;
if (!wasOpen)
aSourceNode.containerOpen = true;
var cc = aSourceNode.childCount;
for (var i = 0; i < cc; ++i) {
if (i != 0)
aStream.write(",", 1);
serializeNodeToJSONStream(aSourceNode.getChild(i), i);
}
aSourceNode.containerOpen = false;
if (!wasOpen)
aSourceNode.containerOpen = false;
}
// write suffix