From 1e0af2d0228199d2d5fc40d602867a617d7e0af5 Mon Sep 17 00:00:00 2001 From: "alfred.peng@sun.com" Date: Thu, 5 Apr 2007 02:59:20 -0700 Subject: [PATCH] Bug 357243. Can not add certain item into cookie "Exceptions" list after clicking "Remove All Sites".Patch by Jia-Qin.Shi@Sun.COM. r=mano. --- browser/components/preferences/permissionsutils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/components/preferences/permissionsutils.js b/browser/components/preferences/permissionsutils.js index 968963b5676..5a3e61ef50e 100644 --- a/browser/components/preferences/permissionsutils.js +++ b/browser/components/preferences/permissionsutils.js @@ -41,7 +41,7 @@ var gTreeUtils = { { for (var i = 0; i < aItems.length; ++i) aDeletedItems.push(aItems[i]); - aItems = []; + aItems.splice(0); var oldCount = aView.rowCount; aView._rowCount = 0; aTree.treeBoxObject.rowCountChanged(0, -oldCount);